def register_repo_check(self, body):
        httpretty.register_uri(
            httpretty.GET,
            re.compile(
                '^{url}repos/{org}/({repo}|{repo_rerun})$'.format(
                    url=self.URL,
                    org=self.ORG,
                    repo=re.escape(self.TEST_REPO),
                    repo_rerun=re.escape(self.TEST_RERUN_REPO)
                )
            ),
            body=body
        )
Create a new extstorage device.
dataset/ETHPy150Open mitodl/orcoursetrion/orcoursetrion/tests/base.py/TestGithubBase.register_repo_check--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/storage/extstorage.py/ExtStorageDevice.Create