Commits

David Chambers  committed 81d5d6c

Improved test coverage.

  • Participants
  • Parent commits 49bf9e6
  • Branches 0.8

Comments (0)

Files changed (1)

File tests/__init__.py

                          'src="http://www.youtube.com/embed/gPbh6Ru7VVM?rel=0"'
                          '></iframe>\n')
 
+    @md('[Google](http://google.com/)')
+    def test_regular_link(self, document):
+        self.assertEqual(document.html,
+                         '<p><a href="http://google.com/">Google</a></p>')
+
 
 class ExcerptTests(unittest.TestCase):
 
         self.assertEqual(related[2].title, 'a, x')     # 1/3
 
 
+class SubscriptionTests(unittest.TestCase):
+
+    def test_unicode(self):
+        if mango.settings.SUBSCRIPTIONS:
+            from mango.models import Subscription
+            sub = Subscription(subscriber_name='Steve Jobs',
+                               subscriber_email='sjobs@apple.com',
+                               url='http://example.com/foobar/baz')
+            self.assertTrue('Steve Jobs <sjobs@apple.com>' in unicode(sub))
+
+
 class TimeZoneTests(unittest.TestCase):
 
     @md('''