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): ...@@ -64,8 +64,9 @@ class CasperExecTestBase(unittest.TestCase):
64 if not what: 64 if not what:
65 raise AssertionError('Empty lookup') 65 raise AssertionError('Empty lookup')
66 if isinstance(what, (list, tuple)): 66 if isinstance(what, (list, tuple)):
67 output = self.runCommand(cmd, **kwargs)
67 for entry in what: 68 for entry in what:
68 self.assertIn(entry, self.runCommand(cmd, **kwargs)) 69 self.assertIn(entry, output)
69 else: 70 else:
70 self.assertIn(what, self.runCommand(cmd)) 71 self.assertIn(what, self.runCommand(cmd))
71 72
......