예제 #1
0
파일: pyunit.py 프로젝트: WA4OSH/PyUnit
 def test_negative_add(self):
    '''Verify that adding negative numbers works''' # Printed if test fails
    self.assertEqual(add(-12,23), 11)
예제 #2
0
파일: pyunit.py 프로젝트: WA4OSH/PyUnit
 def test_negative_add_skip(self):
    self.skipTest
    '''Verify that skipping tests works''' # Printed if test fails
    self.assertEqual(add(-12,23), 11)
예제 #3
0
파일: pyunit.py 프로젝트: WA4OSH/PyUnit
 def test_positive_add(self):
    '''Verify that adding positive numbers works''' # Printed if test fails
    self.assertEqual(add(10,23,22), 55)
    self.assertEqual(add(11,23), 34)
    self.assertEqual(add(1,1,17), 19)