Пример #1
0
 def test_None(self):
     assert aslist(None) == []
Пример #2
0
 def test_nonstring(self):
     assert aslist(55) == [55]
Пример #3
0
 def test_already_list(self):
     assert aslist([55]) == [55]
Пример #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']
Пример #5
0
 def test_None(self):
     assert aslist(None) == []
Пример #6
0
 def test_already_list(self):
     assert aslist([55]) == [55]
Пример #7
0
 def test_nonstring(self):
     assert aslist(55) == [55]
Пример #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']