Commit f39a06d4 authored by carlosribas's avatar carlosribas
Browse files

Add new tests

parent c3f76364
......@@ -129,3 +129,13 @@ class DownloadResultsTests(ExportSearchResultsTestCase):
'?job=%s' % job_id])
r = requests.get(url)
self.assertEqual(r.status_code, 404)
class ResultsPageTests(ExportSearchResultsTestCase):
def test_results_status_code(self):
response = self.client.get(reverse('export-job-results'))
self.assertEquals(response.status_code, 200)
def test_results_template(self):
response = self.client.get(reverse('export-job-results'))
self.assertTemplateUsed(response, 'portal/search/export-job-results.html')
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment