Update tests to reflect federal agency text occurrences

This commit is contained in:
Erin 2024-03-19 15:21:11 -07:00
parent 601ded68ac
commit d0826fe847
No known key found for this signature in database
GPG key ID: 1CAD275313C62460

View file

@ -284,7 +284,7 @@ class TestDomainAdmin(MockEppLib, WebTest):
# There are 4 template references to Federal (4) plus four references in the table # There are 4 template references to Federal (4) plus four references in the table
# for our actual domain_request # for our actual domain_request
self.assertContains(response, "Federal", count=8) self.assertContains(response, "Federal", count=36)
# This may be a bit more robust # This may be a bit more robust
self.assertContains(response, '<td class="field-organization_type">Federal</td>', count=1) self.assertContains(response, '<td class="field-organization_type">Federal</td>', count=1)
# Now let's make sure the long description does not exist # Now let's make sure the long description does not exist
@ -690,7 +690,7 @@ class TestDomainRequestAdmin(MockEppLib):
response = self.client.get("/admin/registrar/domainrequest/") response = self.client.get("/admin/registrar/domainrequest/")
# There are 4 template references to Federal (4) plus two references in the table # There are 4 template references to Federal (4) plus two references in the table
# for our actual domain request # for our actual domain request
self.assertContains(response, "Federal", count=6) self.assertContains(response, "Federal", count=34)
# This may be a bit more robust # This may be a bit more robust
self.assertContains(response, '<td class="field-organization_type">Federal</td>', count=1) self.assertContains(response, '<td class="field-organization_type">Federal</td>', count=1)
# Now let's make sure the long description does not exist # Now let's make sure the long description does not exist