示例#1
0
 def test_validTrials(self):
     self.assertEqual(validTrials('1000'),1000)
     with self.assertRaises(InvalidInputException):
         validPosition('abc')
         validPosition([1,a,d,c])
示例#2
0
 def test_validPosition(self):
     self.assertEqual(validPosition('[1,10,100,1000]'),[1,10,100,1000])
     with self.assertRaises(InvalidInputException):
         validPosition('abc')
         validPosition('(1,10,100,1000)')