Updated bottle to 0.11

This commit is contained in:
Anton Beloglazov 2012-10-15 13:23:23 +11:00
parent 5edbc71df6
commit badb5a6889

View File

@ -34,13 +34,13 @@ class GlobalManager(TestCase):
try:
manager.raise_error(error_code)
except bottle.HTTPResponse as e:
assert e.status == error_code
assert e.status_code == error_code
else:
assert False
try:
manager.raise_error(1)
except bottle.HTTPResponse as e:
assert e.status == 500
assert e.status_code == 500
else:
assert False
@ -48,11 +48,7 @@ class GlobalManager(TestCase):
try:
manager.error()
except bottle.HTTPResponse as e:
print "============="
print dir(e)
print e.status
print "============="
assert e.status == 405
assert e.status_code == 405
else:
assert False