#NEWLINE# def test_get_known_branches( self ) : #NEWLINE# #INDENT# vcs = self . get_vcs ( ) #NEWLINE# vcs . clone ( ) #NEWLINE# vcs . update ( ) #NEWLINE# branches = vcs . get_known_branches ( ) #NEWLINE# self . assertEquals ( 1 , len ( branches ) ) #NEWLINE# self . assertIn ( 'default' , branches ) #NEWLINE# check_call ( ( 'cd %s && hg branch test_branch && hg ci -m "New branch"' % self . remote_path ) , shell = True ) #NEWLINE# vcs . update ( ) #NEWLINE# branches = vcs . get_known_branches ( ) #NEWLINE# self . assertEquals ( 2 , len ( branches ) ) #NEWLINE# self . assertIn ( 'test_branch' , branches )