def test_check_repository_with_wrong_repo_type(self):
        def _http_get(service, url, *args, **kwargs):
            self.assertEqual(
                url,
                'https://mydomain.unfuddle.com/api/v1/repositories/')

            return '[{"id": 1, "abbreviation": "myrepo", "system": "svn"}]', {}

        account = self._get_hosting_account()
        service = account.service
        account.data['password'] = encrypt_password('password')

        self.spy_on(service.client.http_get, call_fake=_http_get)

        self.assertRaises(
            RepositoryError,
            lambda: service.check_repository(
                unfuddle_account_domain='mydomain',
                unfuddle_repo_name='myrepo',
                tool_name='Git'))
        self.assertTrue(service.client.http_get.called)
Testing Unfuddle check_repository with wrong repo type
dataset/ETHPy150Open reviewboard/reviewboard/reviewboard/hostingsvcs/tests/test_unfuddle.py/UnfuddleTests.test_check_repository_with_wrong_repo_type