Unittest - No need to check for exit code as it's already implicit

This commit is contained in:
Renato Alves 2014-07-15 14:33:23 +01:00
parent 1abd5460d7
commit 6fc907ffd5
2 changed files with 2 additions and 4 deletions

View file

@ -40,8 +40,7 @@ class TestBug1359(TestCase):
def test_add_hyphenated(self):
""""one-two-three" in description triggers Malformed ID error"""
code, out, err = self.t(("add", "one-two-three.ca"))
self.assertEqual(code, 0)
self.t(("add", "one-two-three.ca"))
code, out, err = self.t(("1", "info"))
self.assertIn("one-two-three.ca", out)