Commits

David Bennett committed 690273c

Update tests.

Comments (0)

Files changed (2)

private_media/test_settings.py

 
 ROOT_URLCONF = 'private_media.tests.urls'
 
+SECRET_KEY = '1234567890'
+
 TEMPLATE_DIRS = (
     os.path.join(TEST_ROOT, 'templates'),
 )

private_media/tests/tests.py

     def test_file_url(self):
         obj = PrivateStorage.objects.get(normal="tests/django_test.txt")
         self.assertEqual(
-            obj.normal.url, "/media/Ni8xL25vcm1hbA/tests/django_test.txt")
+            obj.normal.url, "/media/Bx0CG1tZRVVYXA/tests/django_test.txt")
 
     def test_file_get_no_auth(self):
-        got = self.client.get("/media/Ni8xL25vcm1hbA/tests/django_test.txt")
+        got = self.client.get("/media/Bx0CG1tZRVVYXA/tests/django_test.txt")
         self.assertIsInstance(got, HttpResponseForbidden)