Created
September 25, 2014 20:33
-
-
Save elyezer/6bdb0e63aa05151efce4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Without the improvements | |
test_something(): | |
try: | |
entity = make_entity() | |
except CLIFactoryError as err: | |
self.fail(err) | |
result = Entity.list() | |
assert result.return_code == 0 | |
assert len(result.stderr) == 0 | |
assert result.stdout['somedata'] == 'expected_data' | |
# With the improvements | |
test_something(): | |
entity = make_entity() | |
result = Entity.list() | |
assert result.stdout['somedata'] == 'expected_data' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment