Exemple #1
0
 def test_spaced(self):
     split = tag_utils.split_strip("  adam  ,  brian  ")
     self.assertEqual(len(split), 2)
     self.assertEqual(split[0], "adam")
     self.assertEqual(split[1], "brian")
Exemple #2
0
 def test_empty(self):
     split = tag_utils.split_strip(None)
     self.assertEqual(split, [])
     split = tag_utils.split_strip("")
     self.assertEqual(split, [])