Commit 49ec2987 49ec2987b61b649ac012a0207dbb807e7125110c by Nathan Black

Dont run tests multiple times per string contains test

1 parent 3b6018f4
......@@ -64,8 +64,9 @@ class CasperExecTestBase(unittest.TestCase):
if not what:
raise AssertionError('Empty lookup')
if isinstance(what, (list, tuple)):
output = self.runCommand(cmd, **kwargs)
for entry in what:
self.assertIn(entry, self.runCommand(cmd, **kwargs))
self.assertIn(entry, output)
else:
self.assertIn(what, self.runCommand(cmd))
......