def test_colored(self):
     eq_(self.parse("abc d" + fmt % 31 + "e"+ fmt % 42 + "f"),
         (message('div', 'mudline', [
             "abc d",
             ('span', 'red', [
                 "e",
                 ('span', 'green_bg', "f")
             ])
          ]),
          "abc def"
         )
     )
 def test_linebreak_strip(self):
     eq_(self.parse("foobar\n"),      (message('div', 'mudline', "foobar"), "foobar"))
     eq_(self.parse("foobar\r\n"),    (message('div', 'mudline', "foobar"), "foobar"))
 def test_simple(self):
     eq_(self.parse(""),              (message('div', 'mudline', None),            ""))
     eq_(self.parse("some text"),     (message('div', 'mudline', "some text"),     "some text"))
     eq_(self.parse(u"unicode text"), (message('div', 'mudline', u"unicode text"), u"unicode text"))