#NEWLINE# def testDoublePK( self ) : #NEWLINE# #INDENT# def bad_class( ) : #NEWLINE# #INDENT# class MyBadClass ( odm . StdModel ) : #NEWLINE# #INDENT# id = odm . IntegerField ( primary_key = True ) #NEWLINE# code = odm . SymbolField ( primary_key = True ) #NEWLINE# #UNINDENT# #UNINDENT# self . assertRaises ( FieldError , self )