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

@ -43,15 +43,12 @@ class TestBug1254(TestCase):
def test_no_segmentation_fault_calc_negative_multiplication(self):
"""calc can multiply zero and negative numbers
"""
args = ("calc", "0*-1")
self.run_command(args)
self.run_command("calc 0*-1")
def test_calc_positive_multiplication(self):
"""calc can multiply negative zero and positive
"""
args = ("calc", "0*1")
self.run_command(args)
self.run_command("calc 0*1")
def run_command(self, args):
code, out, err = self.t(args)