MCPcopy Index your code
hub / github.com/bottlepy/bottle / assertStatus

Method assertStatus

test/tools.py:131–132  ·  view source on GitHub ↗
(self, code, route='/', **kargs)

Source from the content-addressed store, hash-verified

129 bottle.app.pop()
130
131 def assertStatus(self, code, route='/', **kargs):
132 self.assertEqual(code, self.urlopen(route, **kargs)['code'])
133
134 def assertBody(self, body, route='/', **kargs):
135 self.assertEqual(tob(body), self.urlopen(route, **kargs)['body'])

Callers 15

test_illegalMethod · 0.80
test_errorMethod · 0.80
test_mountMethod · 0.80
test_no_slash_prefixMethod · 0.80
test_mount_wsgiMethod · 0.80
test_mergeMethod · 0.80
test_other_errorMethod · 0.80

Calls 1

urlopenMethod · 0.95

Tested by 15

test_illegalMethod · 0.64
test_errorMethod · 0.64
test_mountMethod · 0.64
test_no_slash_prefixMethod · 0.64
test_mount_wsgiMethod · 0.64
test_mergeMethod · 0.64
test_other_errorMethod · 0.64