Пример #1
0
 def test_do_stuff4(self):
     test_param = ''
     result = totest.do_stuff(test_param)
     self.assertEqual(result, 'please enter number')
Пример #2
0
 def test_do_stuff(self):
     test_param = 10
     result = totest.do_stuff(test_param)
     self.assertEqual(result, 15)
Пример #3
0
 def test_do_stuff2(self):
     test_param = 'asdfasdfasd'
     result = totest.do_stuff(test_param)
     self.assertIsInstance(result, ValueError)