def test_svc_to_port_fail(self): expected_results = [ ( r'SSH', [ '23/tcp' ] ) ] options = Namespace() options.svc = ('SSH',) results = cgrep.get_ports(options.svc, self.db) self.assertNotEqual(results, expected_results)
def test_svc_to_port_fail(self): expected_results = [ ( r'SSH', [ '23/tcp' ] ) ] options = Namespace() options.svc = ('SSH',) results = cgrep.get_ports(options.svc, self.db) self.assertNotEquals(results, expected_results)
def test_svc_to_port(self): expected_results = [ ( r'SSH', [ '22/tcp' ] ) ] options = Namespace() options.service = ('SSH',) results = cgrep.get_ports(options.service, self.db) self.assertEqual(results, expected_results)
def test_svc_to_port(self): expected_results = [ ( r'SSH', [ '22/tcp' ] ) ] options = Namespace() options.service = ('SSH',) results = cgrep.get_ports(options.service, self.db) self.assertEquals(results, expected_results)