diff legacy/tests.py @ 744:8789299c75b1

Django 1.6: test discovery as per unittest.
author Brian Neal <bgneal@gmail.com>
date Sun, 29 Dec 2013 14:45:26 -0600
parents ee87ea74d46b
children
line wrap: on
line diff
--- a/legacy/tests.py	Sun Dec 29 13:45:49 2013 -0600
+++ b/legacy/tests.py	Sun Dec 29 14:45:26 2013 -0600
@@ -13,7 +13,7 @@
         s1 = "&quot;Look! No head!&quot; - Laika &amp; The Cosmonauts"
         s2 = unphpbb(s1)
         s3 = u'"Look! No head!" - Laika & The Cosmonauts'
-        self.failUnlessEqual(s2, s3)
+        self.assertEqual(s2, s3)
 
     def test_rem_uuid1(self):
         s1 = ("[url=http://www.thesurfites.com][color=black:3fdb565c83]"
@@ -21,7 +21,7 @@
         s2 = unphpbb(s1)
         s3 = (u'[url=http://www.thesurfites.com][color=black]'
                 'T H E - S U R F I T E S[/color][/url]')
-        self.failUnlessEqual(s2, s3)
+        self.assertEqual(s2, s3)
 
 
 class Html2MdTest(TestCase):
@@ -35,4 +35,4 @@
         md_writer.feed(s1)
         s2 = md_writer.markdown()
         s3 = u'[Pollo Del Mar](http://surfguitar101.com/modules.php?name=Web_Links&l_op=visit&lid=50)  \n\n[Frankie & The Pool Boys](http://tinyurl.com/yjfmspj)  \n\n[PDM on FaceBook](http://tinyurl.com/cnr27t)  \n\n'
-        self.failUnlessEqual(s2, s3)
+        self.assertEqual(s2, s3)