Formatting tweaks.
- Legacy-Id: 455
This commit is contained in:
parent
54f5456c25
commit
2e8902d8b4
|
@ -185,9 +185,9 @@ class UrlTestCase(TestCase):
|
||||||
note("OK %s %s -> %s" % (code, testurl, url))
|
note("OK %s %s -> %s" % (code, testurl, url))
|
||||||
res = ("OK", code)
|
res = ("OK", code)
|
||||||
else:
|
else:
|
||||||
note("Miss %3s %s ->" % (code, testurl))
|
print "Miss %3s %s ->" % (code, testurl)
|
||||||
print " %s" % (response['Location'])
|
print " %s" % (response['Location'])
|
||||||
print " (wanted %s)" % (url)
|
note( " (wanted %s)" % (url))
|
||||||
print ""
|
print ""
|
||||||
#res = ("Fail", "wrong-reponse")
|
#res = ("Fail", "wrong-reponse")
|
||||||
else:
|
else:
|
||||||
|
@ -208,6 +208,8 @@ class UrlTestCase(TestCase):
|
||||||
for res in response_count:
|
for res in response_count:
|
||||||
ind, code = res
|
ind, code = res
|
||||||
self.assertEqual(ind, "OK", "Found %s cases of result code: %s" % (response_count[res], code))
|
self.assertEqual(ind, "OK", "Found %s cases of result code: %s" % (response_count[res], code))
|
||||||
|
if response_count:
|
||||||
|
print ""
|
||||||
|
|
||||||
def doUrlsTest(self, lst):
|
def doUrlsTest(self, lst):
|
||||||
response_count = {}
|
response_count = {}
|
||||||
|
@ -306,6 +308,8 @@ class UrlTestCase(TestCase):
|
||||||
for res in response_count:
|
for res in response_count:
|
||||||
ind, code = res
|
ind, code = res
|
||||||
self.assertEqual(ind, "OK", "Found %s cases of result code: %s" % (response_count[res], code))
|
self.assertEqual(ind, "OK", "Found %s cases of result code: %s" % (response_count[res], code))
|
||||||
|
if response_count:
|
||||||
|
print ""
|
||||||
|
|
||||||
def testUrlsList(self):
|
def testUrlsList(self):
|
||||||
note("\nTesting specified URLs:")
|
note("\nTesting specified URLs:")
|
||||||
|
|
Loading…
Reference in a new issue