Esempio n. 1
0
 def test_None(self):
     assert aslist(None) == []
Esempio n. 2
0
 def test_nonstring(self):
     assert aslist(55) == [55]
Esempio n. 3
0
 def test_already_list(self):
     assert aslist([55]) == [55]
Esempio n. 4
0
 def test_fine(self):
     assert aslist('first,   second, third',
                   ',') == ['first', 'second', 'third']
     assert aslist('first second     third') == ['first', 'second', 'third']
     assert aslist('first,   second, third', ',',
                   False) == ['first', '   second', ' third']
Esempio n. 5
0
 def test_None(self):
     assert aslist(None) == []
Esempio n. 6
0
 def test_already_list(self):
     assert aslist([55]) == [55]
Esempio n. 7
0
 def test_nonstring(self):
     assert aslist(55) == [55]
Esempio n. 8
0
 def test_fine(self):
     assert aslist('first,   second, third', ',') == ['first', 'second', 'third']
     assert aslist('first second     third') == ['first', 'second', 'third']
     assert aslist('first,   second, third', ',', False) == ['first', '   second', ' third']