slug must exist now, so this test is moot. it was probably never intended to be a...
authorBryan <btbonval@gmail.com>
Thu, 16 Jan 2014 04:15:57 +0000 (23:15 -0500)
committerBryan <btbonval@gmail.com>
Thu, 16 Jan 2014 04:15:57 +0000 (23:15 -0500)
karmaworld/apps/notes/tests.py

index 1dc1a1ea79748438e34bc645f617fe3eff4687f5..c0daea30d36d63b848a2fe774bb038f19f1c84d8 100644 (file)
@@ -76,16 +76,6 @@ class TestNoes(TestCase):
         self.note.save()
         self.assertEqual(self.note.slug, expected)
 
-    def test_save_no_slug(self):
-        """ Test that Note.save() doesn't make a slug
-            if Note.name hasn't been set
-        """
-        self.note.name = None
-        self.note.slug = None
-        self.note.save() # re-save the note
-        # check that slug has note been generated
-        self.assertIsNone(self.note.slug)
-
     expected_url_prefix = u'/marshall-college/archaeology-101/'
     expected_slug = u'lecture-notes-concerning-the-use-of-therefore'
     expected = expected_url_prefix + expected_slug