def test_get_missing_request(): request = Base.get_request({}) assert request is None
def test_get_request(): request = Base.get_request({'request': DummyRequest()}) assert isinstance(request, DummyRequest)
def test_get_missing_request(): request = Base.get_request({}) assert request is None
def test_get_request(): request = Base.get_request({'request': DummyRequest()}) assert isinstance(request, DummyRequest)