Exemplo n.º 1
0
 def test_function_generator(self):
     func = utils.tolist()
     self.assertEqual(utils.tolist('a,b'), ['a', 'b'])
Exemplo n.º 2
0
 def test_custom_separator(self):
     self.assertEqual(utils.tolist('a|b', sep='|'), ['a', 'b'])
Exemplo n.º 3
0
 def test_default_list(self):
     self.assertEqual(utils.tolist('a,b'), ['a', 'b'])
Exemplo n.º 4
0
 def test_empty_strings(self):
     self.assertEqual(utils.tolist(',', empty_strings=True), ['', ''])
Exemplo n.º 5
0
 def test_empty_list(self):
     self.assertEqual(utils.tolist(''), [])