Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
John McEleney
/
casperjs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Commit
49ec2987
...
49ec2987b61b649ac012a0207dbb807e7125110c
authored
2013-11-03 15:04:44 -0800
by
Nathan Black
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Dont run tests multiple times per string contains test
1 parent
3b6018f4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
tests/clitests/runtests.py
tests/clitests/runtests.py
View file @
49ec298
...
...
@@ -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
))
...
...
Please
register
or
sign in
to post a comment