Wrong method to test the url

Forgot that Travis urls have the 'http://testserver' part at the front
This commit is contained in:
Daryl 2016-06-30 11:29:35 +12:00
parent a842d1a9c3
commit 3ffe505f29

View File

@ -21,6 +21,6 @@ class TestSavingSharedQuery(TestCase):
'shared':'on',
'query_encoded':'KGRwMApWZmlsdGVyaW5nCnAxCihkcDIKVnN0YXR1c19faW4KcDMKKGxwNApJMQphSTIKYUkzCmFzc1Zzb3J0aW5nCnA1ClZjcmVhdGVkCnA2CnMu'})
self.assertEqual(response.status_code, 302)
self.assertEqual(response.url, '/helpdesk/tickets/?saved_query=1')
self.assertTrue('/helpdesk/tickets/?saved_query=1' in response.url)