#NEWLINE# def test_custom_pk( self ) : #NEWLINE# #INDENT# CustomPkBase . objects . create ( b = 'b' ) #NEWLINE# CustomPkInherit . objects . create ( b = 'b' , i = 'i' ) #NEWLINE# qs = CustomPkBase . objects . all ( ) #NEWLINE# self . assertEqual ( len ( qs ) , 2 ) #NEWLINE# self . assertEqual ( repr ( qs [ 0 ] ) , '<CustomPkBase: id 1, b (CharField) "b">' ) #NEWLINE# self . assertEqual ( repr ( qs [ 1 ] ) , '<CustomPkInherit: id 2, b (CharField) "b", custom_id (AutoField/pk) 1, i (CharField) "i">' )