#NEWLINE# def test_get_branches( self ) : #NEWLINE# #INDENT# client = SvnClient ( self . local_path ) #NEWLINE# self . assertEqual ( [ 'foo' ] , client . get_branches ( ) ) #NEWLINE# subprocess . check_call ( 'mkdir -p branches/foo2' , shell = True , cwd = self . init_path ) #NEWLINE# subprocess . check_call ( 'mkdir -p branches/bar' , shell = True , cwd = self . init_path ) #NEWLINE# subprocess . check_call ( 'svn add branches/foo2' , shell = True , cwd = self . init_path ) #NEWLINE# subprocess . check_call ( 'svn add branches/bar' , shell = True , cwd = self . init_path ) #NEWLINE# subprocess . check_call ( 'svn commit -m newbranches' , shell = True , cwd = self . init_path ) #NEWLINE# self . assertEqual ( [ ] , client . get_branches ( local_only = True ) ) #NEWLINE# self . assertEqual ( [ 'bar' , 'foo' , 'foo2' ] , client . get_branches ( ) ) #NEWLINE# local_path2 = os . path . join ( self . root_directory , 'local_foo' ) #NEWLINE# client = SvnClient ( local_path2 ) #NEWLINE# client . checkout ( ( self . local_root_url + '/branches/foo' ) ) #NEWLINE# self . assertEqual ( [ 'foo' ] , client . get_branches ( local_only = True ) )