diff options
Diffstat (limited to 'ishtar_common/tests.py')
-rw-r--r-- | ishtar_common/tests.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ishtar_common/tests.py b/ishtar_common/tests.py index 3273db19b..9ced28ea6 100644 --- a/ishtar_common/tests.py +++ b/ishtar_common/tests.py @@ -417,6 +417,19 @@ class ShortMenuTest(TestCase): self.assertEqual(response.status_code, 200) self.assertFalse(str(ope.cached_label) in response.content) + # test current is not owned + ope.end_date = None + ope.history_creator = self.other_user + ope.in_charge = None + ope.scientist = None + ope.save() + session = c.session + session[ope.SLUG] = ope.pk + session.save() + response = c.get(reverse('shortcut-menu')) + self.assertEqual(response.status_code, 200) + self.assertTrue(str(ope.cached_label) in response.content) + def testFile(self): from archaeological_files.models import File, FileType c = Client() |