def test_modify_request_definition_failure(self, mocker,
                                            request_definition_builder):
     is_dynamic_mock = mocker.PropertyMock(side_effect=ValueError())
     type(request_definition_builder.uri).is_dynamic = is_dynamic_mock
     request_definition_builder.__name__ = "dummy"
     with pytest.raises(arguments.Url.DynamicUrlAssignmentFailed):
         arguments.Url().modify_request_definition(
             request_definition_builder)
 def test_modify_request(self, request_builder):
     arguments.Url().modify_request(request_builder, "/some/path")
     assert request_builder.url == "/some/path"
 def test_modify_request_definition(self, request_definition_builder):
     arguments.Url().modify_request_definition(request_definition_builder)
     assert request_definition_builder.uri.is_dynamic