Ejemplo n.º 1
0
 def test_list_of_ints_returns_ints_even_if_whitespace_in_string(self):
     actual = datatypes.list_of_ints(' 1 , 42 ')
     self.assertEqual(actual, [1, 42])
Ejemplo n.º 2
0
 def test_list_of_ints_returns_empty_list_for_empty_string(self):
     actual = datatypes.list_of_ints('')
     self.assertEqual(actual, [])
Ejemplo n.º 3
0
 def test_list_of_ints_returns_list_of_ints_by_comma_split(self):
     actual = datatypes.list_of_ints('1,42')
     self.assertEqual(actual, [1, 42])
Ejemplo n.º 4
0
 def _callFUT(self, arg):
     return datatypes.list_of_ints(arg)
Ejemplo n.º 5
0
 def test_list_of_ints_returns_ints_even_if_whitespace_in_string(self):
     actual = datatypes.list_of_ints(" 1 , 42 ")
     self.assertEqual(actual, [1, 42])
Ejemplo n.º 6
0
 def test_list_of_ints_returns_list_of_ints_by_comma_split(self):
     actual = datatypes.list_of_ints("1,42")
     self.assertEqual(actual, [1, 42])
Ejemplo n.º 7
0
 def test_list_of_ints_returns_empty_list_for_empty_string(self):
     actual = datatypes.list_of_ints("")
     self.assertEqual(actual, [])
Ejemplo n.º 8
0
 def _callFUT(self, arg):
     return datatypes.list_of_ints(arg)