Tests that a message is set when a shepherd is not changed. Related to #1508 and r8504. Commit ready for merge.

- Legacy-Id: 8585
This commit is contained in:
Robert Sparks 2014-11-04 21:15:11 +00:00
parent 5ca9581072
commit de94d49665

View file

@ -853,6 +853,8 @@ class IndividualInfoFormsTests(TestCase):
self.assertEqual(r.status_code, 302)
self.doc = Document.objects.get(name=self.docname)
self.assertEqual(set(comment_events), set(self.doc.docevent_set.filter(time=self.doc.time,type="added_comment")))
r = self.client.get(url)
self.assertTrue(any(['no changes have been made' in m.message for m in r.context['messages']]))
# Remove the shepherd
r = self.client.post(url, dict(shepherd=''))