示例#1
0
 def test_to_list_splits_on_comma(self):
     ids_param = "1,2,3,4,5"
     self.assertEqual(utils.to_list(ids_param), ["1", "2", "3", "4", "5"])
示例#2
0
 def test_to_list_splits_on_comma(self):
     ids_param = '1,2,3,4,5'
     self.assertEqual(utils.to_list(ids_param), ['1', '2', '3', '4', '5'])
示例#3
0
 def test_to_list_bad_data(self):
     march_15_timestamp = 12345
     self.assertEqual(utils.to_list(march_15_timestamp), 12345)
示例#4
0
 def test_to_list_bad_data(self):
     march_15_timestamp = 12345
     self.assertEqual(utils.to_list(march_15_timestamp), 12345)