Ejemplo n.º 1
0
 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('  '), [])
Ejemplo n.º 2
0
 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'])