mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-07-26 12:38:36 +02:00
Add form test and fix linting/test merge errors
This commit is contained in:
parent
59c67a70d2
commit
d4ac5d92f1
4 changed files with 27 additions and 40 deletions
|
@ -11,6 +11,7 @@ from registrar.forms.application_wizard import (
|
|||
OtherContactsForm,
|
||||
SecurityEmailForm,
|
||||
RequirementsForm,
|
||||
TribalGovernmentForm,
|
||||
)
|
||||
|
||||
|
||||
|
@ -150,3 +151,15 @@ class TestFormValidation(TestCase):
|
|||
" registering and operating .gov domains."
|
||||
],
|
||||
)
|
||||
|
||||
def test_tribal_government_unrecognized(self):
|
||||
"""Not state or federally recognized is an error."""
|
||||
form = TribalGovernmentForm(
|
||||
data={"state_recognized": False, "federally_recognized": False}
|
||||
)
|
||||
self.assertTrue(
|
||||
any(
|
||||
"Please email registrar@dotgov.gov" in error
|
||||
for error in form.non_field_errors()
|
||||
)
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue