mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-05-01 07:51:08 -05:00
PortLookup: fix tests
This commit is contained in:
parent
311822d355
commit
e70db1ca72
@ -35,11 +35,14 @@ class PortLookupTestCase(PluginTestCase):
|
|||||||
plugins = ('PortLookup',)
|
plugins = ('PortLookup',)
|
||||||
|
|
||||||
def testPort(self):
|
def testPort(self):
|
||||||
self.assertRegexp('port 22', 'SSH.*?Official.*?TCP')
|
self.assertRegexp('port 22', 'SSH.*?TCP.*?Official')
|
||||||
|
|
||||||
# Some entries in the list are defined as port ranges (i.e.
|
# Some entries in the list are defined as port ranges (i.e.
|
||||||
# 6665-6669); we have to split them manually.
|
# 6665-6669); we have to split them manually.
|
||||||
self.assertRegexp('port 6667', 'Internet Relay Chat')
|
self.assertRegexp('port 6667', 'Internet Relay Chat')
|
||||||
|
|
||||||
self.assertError('port 77777') # Port numbers can't be >65535
|
self.assertError('port 77777') # Port numbers can't be >65535
|
||||||
|
|
||||||
# Wikipedia notes that ports 49152-65535 cannot be registered
|
# Wikipedia notes that ports 49152-65535 cannot be registered
|
||||||
# with IANA, so we'll leave a note here too.
|
# with IANA, so we'll leave a note here too.
|
||||||
self.assertRegexp('port 65300', 'cannot be registered')
|
self.assertRegexp('port 65300', 'cannot be registered')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user