#NEWLINE# def test_auto_pk( self ) : #NEWLINE# #INDENT# '\n        Test if auto pk is *not* overwritten.\n        Although local object has the same pk as remote one, new object will be created,\n        because pk is automatic.\n        ' #NEWLINE# some = TestModel . objects . db_manager ( REMOTE ) . create ( name = 'Remote James' , cash = 77 ) #NEWLINE# a = TestModel . objects . create ( name = 'James' , cash = 7 ) #NEWLINE# self . assertEquals ( a . pk , a . pk ) #NEWLINE# self . synchronize ( ) #NEWLINE# self . assertLocalCount ( 1 , TestModel ) #NEWLINE# self . assertRemoteCount ( 2 , TestModel ) #NEWLINE# self . assertTrue ( TestModel . objects . db_manager ( REMOTE ) . get ( name = 'James' ) ) #NEWLINE# self . assertTrue ( TestModel . objects . db_manager ( REMOTE ) . get ( name = 'Remote James' ) )