Beispiel #1
0
 def test_can_insert_url_helper_into_context(self):
     d = current_url(self.request)
     self.assertTrue('current_url' in d)
     self.assertEqual(
         d['current_url'].get_full_path(),
         self.request.get_full_path.return_value
     )
Beispiel #2
0
 def test_can_get_url_from_request(self):
     current_url(self.request)
     self.assertTrue(self.request.get_full_path.called)