예제 #1
0
파일: test.py 프로젝트: PKpacheco/triangle
 def test_entry_numbers_is_tuple(self):
     self.assertIsInstance(
         main.entry_numbers(3), tuple)
예제 #2
0
파일: test.py 프로젝트: PKpacheco/triangle
 def test_entry_numbers_not_null(self):
     with self.assertRaises(ValueError):
         main.entry_numbers(None)
예제 #3
0
파일: test.py 프로젝트: PKpacheco/triangle
 def test_entry_numbers_not_negative(self):
     with self.assertRaises(ValueError):
         main.entry_numbers(-10)