def test_None(self): assert aslist(None) == []
def test_nonstring(self): assert aslist(55) == [55]
def test_already_list(self): assert aslist([55]) == [55]
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']