Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
The second method I added.
class VersionCommandTestCase(CommandBaseTestCase):
def test_has_version(self):
result = self.run_command(['--version'])
self.assertThat(result.exit_code, Equals(0))
def test_has_version_without_hyphens(self):
result = self.run_command(['version'])
print(result.output)
self.assertThat(result.exit_code, Equals(0))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment