#NEWLINE# def test_create_table_shorthand2( self ) : #NEWLINE# #INDENT# pid = 'string_id' #NEWLINE# table = self . db . get_table ( 'foo6' , primary_id = pid , primary_type = 'String' ) #NEWLINE# assert table . table . exists #NEWLINE# assert ( len ( table . table . columns ) == 1 ) , table . table . columns #NEWLINE# assert ( self in table . table . c ) , table . table . c #NEWLINE# table . insert ( { #NEWLINE# #INDENT# 'string_id' : 'foobar' , #NEWLINE# #UNINDENT# } ) #NEWLINE# assert ( table . find_one ( string_id = 'foobar' ) [ 'string_id' ] == 'foobar' )