def test_parseTagsAllWhitespace(self): """ Test that L{hyperbola.hyperbola_view.AddCommentFragment.parseTags} returns the empty list when given a string of whitespace """ self.assertEquals( hyperbola_view.parseTags(' '), [])
def test_parseTagsExtraneousWhitespace(self): """ Test that L{hyperbola.hyperbola_view.parseTags} removes any whitespace surrounding the tags it is passed """ self.assertEquals( hyperbola_view.parseTags(' a , b,c,d, '), ['a', 'b', 'c', 'd'])