示例#1
0
 def test_true_input(self):
     self.assertEqual(parse_input('5,3'), {'x': 5, 'y': 3})
示例#2
0
 def test_x_and_y_negative(self):
     self.assertEqual(parse_input('-2,-4'), None)
示例#3
0
 def test_bigger_than_max_indis_all(self):
     self.assertEqual(parse_input('8,10'), None)
示例#4
0
 def test_x_negative(self):
     self.assertEqual(parse_input('-3,5'), None)
示例#5
0
 def test_y_negative(self):
     self.assertEqual(parse_input('3,-5'), None)
示例#6
0
 def test_numerik_and_string(self):
     self.assertEqual(parse_input('3,asasa'), None)
示例#7
0
 def test_more_comma(self):
     self.assertEqual(parse_input('sas,sas,asa'), None)
示例#8
0
 def test_string(self):
     self.assertEqual(parse_input('dsdsad'), None)
示例#9
0
 def test_null(self):
     self.assertEqual(parse_input(''), None)
示例#10
0
 def test_empty(self):
     self.assertEqual(parse_input(''), None)