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

Method assertBody

test/tools.py:134–135  ·  view source on GitHub ↗
(self, body, route='/', **kargs)

Source from the content-addressed store, hash-verified

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'])
136
137 def assertInBody(self, body, route='/', **kargs):
138 result = self.urlopen(route, **kargs)['body']

Callers 15

test_route_pluginMethod · 0.80
test_plugin_oderMethod · 0.80
test_skip_by_instanceMethod · 0.80
test_skip_by_classMethod · 0.80
test_skip_by_nameMethod · 0.80
test_skip_allMethod · 0.80
test_skip_nonlistMethod · 0.80
test_callableMethod · 0.80
test_applyMethod · 0.80
test_bytesMethod · 0.80

Calls 2

urlopenMethod · 0.95
tobFunction · 0.90

Tested by 15

test_route_pluginMethod · 0.64
test_plugin_oderMethod · 0.64
test_skip_by_instanceMethod · 0.64
test_skip_by_classMethod · 0.64
test_skip_by_nameMethod · 0.64
test_skip_allMethod · 0.64
test_skip_nonlistMethod · 0.64
test_callableMethod · 0.64
test_applyMethod · 0.64
test_bytesMethod · 0.64