Commit 40ea29f9 by Laurent Meirlaen

Merge branch 'master' of https://github.com/reverse-shell/routersploit into…

Merge branch 'master' of https://github.com/reverse-shell/routersploit into netgear_multi_pwd_disclosure-201701
parents 8d66b506 c42a0c69
......@@ -20,6 +20,9 @@ class RoutersploitTestCase(unittest.TestCase):
msg="'{}' method should be decorated with 'module_required'".format(function.__name__)
)
def assertIsSubset(self, subset, container):
[self.assertIn(element, container) for element in subset]
def assertIsSequence(self, arg):
self.assertEqual(
True,
......
......@@ -31,7 +31,7 @@ class ModuleTest(RoutersploitTestCase):
"authors",
"references"
)
self.assertItemsEqual(required_metadata, self.module_metadata.keys())
self.assertIsSubset(required_metadata, self.module_metadata.keys())
def test_metadata_type(self):
self.assertIsSequence(self.module_metadata['authors'])
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment