fix UI tests that werent updated to match the new templates
This commit is contained in:
parent
5c35b2306e
commit
b62af7b64d
|
@ -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'testrecord1.testzone1.test.net', u'testrecord2.testzone1.test.net']"/>',
|
||||||
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)
|
||||||
|
|
Loading…
Reference in New Issue