updated tests

This commit is contained in:
asaki222 2024-10-24 17:18:53 -04:00
parent a9aa8b16ef
commit 5a896ac369
No known key found for this signature in database
GPG key ID: 2C4F802060E06EA4
3 changed files with 28 additions and 4 deletions

View file

@ -576,6 +576,8 @@ class TestDomainRequestAdmin(MockEppLib):
response = self.client.get("/admin/registrar/domainrequest/?generic_org_type__exact=federal")
# There are 2 template references to Federal (4) and two in the results data
# of the request
self.assertContains(response, "Federal", count=48)
self.assertContains(response, "Converted federal", count=4)
# This may be a bit more robust
self.assertContains(response, '<td class="field-converted_generic_org_type">federal</td>', count=1)
# Now let's make sure the long description does not exist