#NEWLINE# def test_auto_id_not_set_if_specific_in_parent_class( self ) : #NEWLINE# #INDENT# class City ( Document ) : #NEWLINE# #INDENT# continent = StringField ( ) #NEWLINE# city_id = IntField ( primary_key = True ) #NEWLINE# meta = { #NEWLINE# #INDENT# 'abstract' : True , #NEWLINE# 'allow_inheritance' : False , #NEWLINE# #UNINDENT# } #NEWLINE# #UNINDENT# class EuropeanCity ( City ) : #NEWLINE# #INDENT# name = StringField ( ) #NEWLINE# #UNINDENT# berlin = EuropeanCity ( name = 'Berlin' , continent = 'Europe' ) #NEWLINE# self . assertEqual ( len ( berlin . _db_field_map ) , len ( self . _fields_ordered ) ) #NEWLINE# self . assertEqual ( len ( berlin . _reverse_db_field_map ) , len ( berlin . _fields_ordered ) ) #NEWLINE# self . assertEqual ( len ( berlin . _fields_ordered ) , 3 ) #NEWLINE# self . assertEqual ( berlin . _fields_ordered [ 0 ] , 'city_id' )