def _register_uri(self, method, uri=test_uri,
                      data=None, body=None, status=200, **kwds):
        if data is None:
            data = self.test_data
            # Set the JSON return code to match the HTTP status
            data["code"] = status
        if body is None:
            body = json.dumps(data)
        httpretty.register_uri(method, uri=uri, body=body, status=status,
                               **kwds)
Marshal cmd line args into a requirement set.
dataset/ETHPy150Open photo/openphoto-python/tests/unit/test_http_errors.py/TestHttpErrors._register_uri--crossover with--dataset/ETHPy150Open pypa/pip/pip/basecommand.py/RequirementCommand.populate_requirement_set