File size: 571 Bytes
fc0f7bd | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 | from falcon import Request, Response
import falcon.testing as testing
class TestSlots(testing.TestBase):
def test_slots_request(self):
env = testing.create_environ()
req = Request(env)
try:
req.doesnt = 'exist'
except AttributeError:
self.fail('Unable to add additional variables dynamically')
def test_slots_response(self):
resp = Response()
try:
resp.doesnt = 'exist'
except AttributeError:
self.fail('Unable to add additional variables dynamically')
|