diff --git a/apps/ops/tests.py b/apps/ops/tests.py index 4a8b860..86e8cd3 100644 --- a/apps/ops/tests.py +++ b/apps/ops/tests.py @@ -418,6 +418,18 @@ class BatchCreateTests(BatchTestCase): ) self.assertTrue(self.errors_for(r, "origin_facility")) + def test_the_origin_facility_help_text_matches_what_the_form_does(self): + r = self.client_ops.get("/ops/batches/new/") + # An existing unregistered value is kept, so the help must not claim the + # batch and the register cannot disagree. + self.assertContains(r, "keeps its own value") + self.assertNotContains(r, "cannot disagree") + + def test_the_status_card_says_which_qc_statuses_are_offered(self): + r = self.client_ops.get("/ops/batches/new/") + self.assertContains(r, "never offered here") + self.assertContains(r, "appears only as the current value") + class BatchStatusRuleTests(BatchTestCase): """The rule that makes the screen worth having."""