Test: Change most tests to use "add test" instead of split arguments
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user