def METHOD_NAME(self):
    """Test creation of a repository object with a tag, branch and hash raises a
    runtimer error.
    """
    name = 'test_repo'
    protocol = 'test_protocol'
    url = 'test_url'
    branch = 'test_branch'
    tag = 'test_tag'
    ref = 'deadc0de'
    sparse = EMPTY_STR
    repo_info = {ExternalsDescription.PROTOCOL: protocol,
                 ExternalsDescription.REPO_URL: url,
                 ExternalsDescription.BRANCH: branch,
                 ExternalsDescription.TAG: tag,
                 ExternalsDescription.HASH: ref,
                 ExternalsDescription.SPARSE: sparse, }
    with self.assertRaises(RuntimeError):
        Repository(name, repo_info)