fix UI tests that werent updated to match the new templates

This commit is contained in:
jeffrey forman 2015-04-04 22:07:49 -04:00
parent 5c35b2306e
commit b62af7b64d
1 changed files with 7 additions and 9 deletions

View File

@ -52,13 +52,13 @@ class PostTests(TestCase):
"rr_list" : [] }) "rr_list" : [] })
self.assertContains(response, self.assertContains(response,
'<input type="hidden" name="zone_name" value="testzone1.test.net">', '<input type="text" class="form-control hidden" name="zone_name" value="testzone1.test.net"/>',
html=True) html=True)
self.assertContains(response, self.assertContains(response,
'<input type="hidden" name="rr_list" value="[]">', '<input type="text" class="form-control hidden" name="rr_list" value="[]"/>',
html=True) html=True)
self.assertContains(response, self.assertContains(response,
'<input type="hidden" name="dns_server" value="testserver.test.net" />', '<input type="text" class="form-control hidden" name="dns_server" value="testserver.test.net"/>',
html=True) html=True)
@ -68,13 +68,11 @@ class PostTests(TestCase):
"zone_name" : "testzone1.test.net", "zone_name" : "testzone1.test.net",
"rr_list" : ["testrecord1.testzone1.test.net", "rr_list" : ["testrecord1.testzone1.test.net",
"testrecord2.testzone1.test.net"] }) "testrecord2.testzone1.test.net"] })
self.assertContains(response, self.assertContains(response,
'<input type="hidden" name="zone_name" value="testzone1.test.net">', '<input type="text" class="form-control hidden" name="zone_name" value="testzone1.test.net"/>', html=True)
self.assertContains(response,
'<input type="text" class="form-control hidden" name="rr_list" value="[u&#39;testrecord1.testzone1.test.net&#39;, u&#39;testrecord2.testzone1.test.net&#39;]"/>',
html=True) html=True)
self.assertContains(response, self.assertContains(response,
'<input type="hidden" name="rr_list" value="[u\'testrecord1.testzone1.test.net\', u\'testrecord2.testzone1.test.net\']">', '<input type="text" class="form-control hidden" name="dns_server" value="testserver.test.net"/>',
html=True)
self.assertContains(response,
'<input type="hidden" name="dns_server" value="testserver.test.net" />',
html=True) html=True)