def testMarkup(self):
     obj = Mock()
     obj.description = "Test <em>me</me> <strong>now</strong>"
     self.assertEqual(Description(obj)(), "Test me now")
 def testEmpty(self):
     obj = Mock()
     obj.description = ""
     self.assertEqual(Description(obj)(), "")
 def testSimpleText(self):
     obj = Mock()
     obj.description = "Test"
     self.assertEqual(Description(obj)(), "Test")
 def testMissing(self):
     self.assertEqual(Description(object())(), "")