mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-02 16:02:15 +02:00
fix unit tests
This commit is contained in:
parent
ee18be87c7
commit
f183090e24
1 changed files with 4 additions and 4 deletions
|
@ -130,9 +130,9 @@ class TestPortfolio(WebTest):
|
|||
# Assert the response is a 200
|
||||
self.assertEqual(response.status_code, 200)
|
||||
# The label for Federal agency will always be a h4
|
||||
self.assertContains(response, '<h4 class="usa-prose text-primary margin-bottom-05">Federal agency</h4>')
|
||||
self.assertContains(response, '<h4 class="read-only-label">Federal agency</h4>')
|
||||
# The read only label for city will be a h4
|
||||
self.assertContains(response, '<h4 class="usa-prose text-primary margin-bottom-05">City</h4>')
|
||||
self.assertContains(response, '<h4 class="read-only-label">City</h4>')
|
||||
self.assertNotContains(response, 'for="id_city"')
|
||||
self.assertContains(response, '<p class="margin-top-0">Los Angeles</p>')
|
||||
|
||||
|
@ -153,9 +153,9 @@ class TestPortfolio(WebTest):
|
|||
# Assert the response is a 200
|
||||
self.assertEqual(response.status_code, 200)
|
||||
# The label for Federal agency will always be a h4
|
||||
self.assertContains(response, '<h4 class="usa-prose text-primary margin-bottom-05">Federal agency</h4>')
|
||||
self.assertContains(response, '<h4 class="read-only-label">Federal agency</h4>')
|
||||
# The read only label for city will be a h4
|
||||
self.assertNotContains(response, '<h4 class="usa-prose text-primary margin-bottom-05">City</h4>')
|
||||
self.assertNotContains(response, '<h4 class="read-only-label">City</h4>')
|
||||
self.assertNotContains(response, '<p class="margin-top-0">Los Angeles</p>>')
|
||||
self.assertContains(response, 'for="id_city"')
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue