Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

tests fail

  • Loading branch information...
commit 6966f9596681ba2a50ad14ae539118027e5c2c94 1 parent 440e343
@andreysobol authored
Showing with 12 additions and 0 deletions.
  1. +12 −0 testsobol/mainapp/tests.py
View
12 testsobol/mainapp/tests.py
@@ -145,3 +145,15 @@ def test(self):
b.delete()
self.assertEqual(Log.objects.order_by('-id')[0].model,'Bio')
self.assertEqual(Log.objects.order_by('-id')[0].signal,'delete')
+
+class RequestPriority(TestCase):
+
+ def test(self):
+ fixtures = ['initial_data.json']
+ page = self.client.get('/http/')
+ self.assertEqual(page.status_code, 200)
+ b = False;
+ for r in page.context['custom_request']:
+ if r['url']=='/http/' and r['priority']==2:
+ b = True
+ self.assertTrue(b)
Please sign in to comment.
Something went wrong with that request. Please try again.