Dont run tests multiple times per string contains test
Showing
1 changed file
with
2 additions
and
1 deletions
... | @@ -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 | ... | ... |
-
Please register or sign in to post a comment