'If the test branch does not exist locally, but does exist as a remote
branch a base branch can still be calculated.'

def test_branch_only_exists_remote(self):

    self.repo.create_head('release/flocker-0.3.0rc1')
    self.repo.create_tag('0.3.0rc1')
    directory = FilePath(self.mktemp())
    clone = self.repo.clone(path=directory.path)
    self.assertEqual(calculate_base_branch(version='0.3.0rc2', path=clone.working_dir).name, 'master')
