def test_listify_string(self): """Check listify_string.""" self.assertEqual(yr.listify_string(None), []) self.assertEqual(yr.listify_string('some string'), ['some string']) self.assertEqual(yr.listify_string(['some', 'string']), ['some', 'string'])
def test_listify_string(self): """Check listify_string.""" self.assertEqual(yr.listify_string(None), []) self.assertEqual(yr.listify_string('some string'), ['some string']) self.assertEqual(yr.listify_string(['some', 'string']), ['some', 'string'])