示例#1
0
 def test_do_stuff3(self):
     test_param = ''
     result = main.funcname(test_param)
     self.assertEqual(result, 'Please enter any number')
示例#2
0
 def test_do_stuff(self):
     ''' Doing Test 1 '''
     test_param = 10
     result = main.funcname(test_param)
     self.assertEqual(result, 15)
示例#3
0
 def test_do_stuff2(self):
     test_param = 'hello'
     result = main.funcname(test_param)
     self.assertIsInstance(result, ValueError)