コード例 #1
0
ファイル: test_utils.py プロジェクト: MrJohz/votes
 def test_with_list(self):
     assert utils.destr(['1', '2']) == ['1', '2']
コード例 #2
0
ファイル: test_utils.py プロジェクト: MrJohz/votes
 def test_with_none(self):
     assert utils.destr(None) == []
コード例 #3
0
ファイル: test_utils.py プロジェクト: MrJohz/votes
 def test_with_string(self):
     assert utils.destr('hello') == ['hello']