Minor fixes to testing code
- Legacy-Id: 1727
This commit is contained in:
parent
8fd82cb431
commit
a9a80ac2da
|
@ -16,9 +16,9 @@
|
|||
200 /ipr/new-generic/
|
||||
200 /ipr/new-specific/
|
||||
200 /ipr/new-third-party/
|
||||
200 /ipr/new-generic/?_testpost
|
||||
200 /ipr/new-specific/?_testpost
|
||||
200 /ipr/new-third-party/?_testpost
|
||||
200 /ipr/new-generic/?_testpost=1
|
||||
200 /ipr/new-specific/?_testpost=1
|
||||
200 /ipr/new-third-party/?_testpost=1
|
||||
|
||||
200 /ipr/update/
|
||||
200 /ipr/update/657/ # Generic
|
||||
|
@ -26,12 +26,12 @@
|
|||
200 /ipr/update/844/ # Specific
|
||||
404 /ipr/update/1066/ # Removed test record
|
||||
|
||||
200 /ipr/update/657/?_testpost # Generic
|
||||
200 /ipr/update/820/?_testpost # Third-party
|
||||
200 /ipr/update/844/?_testpost # Specific
|
||||
200 /ipr/update/657/?_testpost&email=test@example.com&name=Test&telephone=123&update_auth=on
|
||||
200 /ipr/update/820/?_testpost&email=test@example.com&name=Test&telephone=123&update_auth=on
|
||||
200 /ipr/update/844/?_testpost&email=test@example.com&name=Test&telephone=123&update_auth=on
|
||||
200 /ipr/update/657/?_testpost=1 # Generic
|
||||
200 /ipr/update/820/?_testpost=1 # Third-party
|
||||
200 /ipr/update/844/?_testpost=1 # Specific
|
||||
200 /ipr/update/657/?_testpost=1&email=test@example.com&name=Test&telephone=123&update_auth=on
|
||||
200 /ipr/update/820/?_testpost=1&email=test@example.com&name=Test&telephone=123&update_auth=on
|
||||
200 /ipr/update/844/?_testpost=1&email=test@example.com&name=Test&telephone=123&update_auth=on
|
||||
|
||||
200 /ipr/search/
|
||||
302 /ipr/search/?option=document_search # incomplete argument set gives redirect
|
||||
|
|
|
@ -1,13 +1,13 @@
|
|||
302 /meeting/
|
||||
200 /meeting/agenda/
|
||||
200 /meeting/agenda/?_testiphone
|
||||
200 /meeting/agenda/?_testiphone=1
|
||||
200 /meeting/agenda.html
|
||||
200 /meeting/agenda.txt
|
||||
200 /meeting/75/agenda.html
|
||||
200 /meeting/75/agenda.html?_testiphone
|
||||
200 /meeting/75/agenda.html?_testiphone=1
|
||||
200 /meeting/75/agenda.txt
|
||||
200 /meeting/75/materials.html
|
||||
200 /meeting/75/materials.html?_testoverride
|
||||
200 /meeting/75/materials.html?_testoverride=1
|
||||
404 /meeting/99/agenda.html
|
||||
404 /meeting/99/agenda.txt
|
||||
404 /meeting/99/materials.html
|
||||
|
|
|
@ -179,10 +179,12 @@ class SimpleUrlTestCase(TestCase,RealDatabaseTest):
|
|||
except e:
|
||||
print " Error retrieving %s: %s" % (refurl, e)
|
||||
testhtml = response.content
|
||||
#print "REFERENCE:\n----------------------\n"+refhtml+"\n-------------\n"
|
||||
#print "TEST:\n----------------------\n"+testhtml+"\n-------------\n"
|
||||
|
||||
list0 = refhtml.split("\n")
|
||||
list1 = testhtml.split("\n")
|
||||
diff = "\n".join(unified_diff(list0, list1, url, refurl, "", "", 0, lineterm=""))
|
||||
diff = "\n".join(unified_diff(list0, list1, refurl, url, "", "", 0, lineterm=""))
|
||||
if diff:
|
||||
print " Differences found:"
|
||||
print diff
|
||||
|
|
Loading…
Reference in a new issue