#NEWLINE# def testCollaboration( self ) : #NEWLINE# #INDENT# new_file_base_name = 'new_file.txt' #NEWLINE# new_filename = os . path . join ( self . repo1 . path , new_file_base_name ) #NEWLINE# with open ( f , 'wb' ) as f : #NEWLINE# #INDENT# ( ( print >> f ) , 'hello there!' ) #NEWLINE# #UNINDENT# self . assertTrue ( ( new_file_base_name in self . repo1 . getUntrackedFiles ( ) ) ) #NEWLINE# self . repo1 . addAll ( ) #NEWLINE# self . assertTrue ( any ( ( ( f . filename == new_file_base_name ) for f in self . repo1 . getStagedFiles ( ) ) ) ) #NEWLINE# c = self . repo1 . commit ( message = 'add file' ) #NEWLINE# self . assertFalse ( os . path . exists ( os . path . join ( self . repo2 . path , new_file_base_name ) ) ) #NEWLINE# self . repo2 . pull ( ) #NEWLINE# self . assertTrue ( os . path . exists ( os . path . join ( self . repo2 . path , new_file_base_name ) ) ) #NEWLINE# self . assertTrue ( ( c in self . repo2 ) )