def register_create_file(self, status=201):
        httpretty.register_uri(
            httpretty.PUT,
            re.compile(
                r'^{url}repos/{org}/{repo}/contents/.+$'.format(
                    url=re.escape(self.URL),
                    org=re.escape(self.ORG),
                    repo=re.escape(self.TEST_REPO),
                )
            ),
            status=status
        )
File creation API
dataset/ETHPy150Open mitodl/orcoursetrion/orcoursetrion/tests/base.py/TestGithubBase.register_create_file