

def test_get_known_branches(self):
    vcs = self.get_vcs()
    vcs.clone()
    vcs.update()
    branches = vcs.get_known_branches()
    vcs.assertEquals(1, len(branches))
    self.assertIn('master', branches)
    check_call('git checkout -B test_branch'.split(), cwd=self.remote_path)
    vcs.update()
    branches = vcs.get_known_branches()
    self.assertEquals(2, len(branches))
    self.assertIn('test_branch', branches)

dataset/ETHPy150Open dropbox/changes/tests/changes/vcs/test_git.py GitVcsTest.test_get_known_branches/VarMisuse@38/45 `self`->`vcs`