Test: Change most tests to use "add test" instead of split arguments

This commit is contained in:
Renato Alves
2015-07-17 19:13:26 +01:00
parent d711bda35c
commit 27b8cabac1
76 changed files with 1179 additions and 1245 deletions

View File

@@ -46,24 +46,24 @@ class TestBug1031(TestCase):
def test_alias_to(self):
"""alias working as expected: 'from' -> 'to'"""
self.t(("add", "from"))
code, out, err = self.t(("1", "info"))
self.t("add from")
code, out, err = self.t("1 info")
expected = "Description\s+to"
self.assertRegexpMatches(out, expected)
def test_alias_to_to(self):
"""alias working as expected: 'from -- to' -> 'to to'"""
self.t(("add", "from", "--", "to"))
code, out, err = self.t(("1", "info"))
self.t("add from -- to")
code, out, err = self.t("1 info")
expected = "Description\s+to to"
self.assertRegexpMatches(out, expected)
def test_alias_to_from(self):
"""alias working as expected: 'to -- from' -> 'to from'"""
self.t(("add", "to", "--", "from"))
code, out, err = self.t(("1", "info"))
self.t("add to -- from")
code, out, err = self.t("1 info")
expected = "Description\s+to from"
self.assertRegexpMatches(out, expected)