def test_is_list_wrong_data(self): """ see if the result is [] """ result = meta.is_list(1) self.assertEqual(result, [])
def test_is_list_good_data(self): """ item in list shall be converted to unicode """ result = meta.is_list([1, 2]) self.assertEqual(result, [u"1", u"2"])