def test_validTrials(self): self.assertEqual(validTrials('1000'),1000) with self.assertRaises(InvalidInputException): validPosition('abc') validPosition([1,a,d,c])
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)')