diff options
Diffstat (limited to 'archaeological_operations/tests.py')
| -rw-r--r-- | archaeological_operations/tests.py | 7 | 
1 files changed, 7 insertions, 0 deletions
| diff --git a/archaeological_operations/tests.py b/archaeological_operations/tests.py index 1c63de93b..e0e5d5313 100644 --- a/archaeological_operations/tests.py +++ b/archaeological_operations/tests.py @@ -932,6 +932,13 @@ class OperationTest(TestCase, OperationInitTest):          self.assertEqual(response.status_code, 200)          self.assertIn('class="sheet"', response.content) +        response = c.get(reverse('show-operation', kwargs={'pk': operation.pk, +                                                           'type': 'odt'})) +        self.assertEqual(response.status_code, 200) +        f = StringIO.StringIO(response.content) +        z = zipfile.ZipFile(f) +        self.assertIsNone(z.testzip()) +  class OperationSearchTest(TestCase, OperationInitTest):      fixtures = FILE_FIXTURES | 
