#NEWLINE# def test_from_multiple( self ) : #NEWLINE# #INDENT# q = User . select ( ) . from_ ( User , Blog ) . where ( ( Blog . user == User . id ) ) #NEWLINE# ( sql , params ) = compiler . generate_select ( q ) #NEWLINE# self . assertEqual ( params , 'SELECT "users"."id", "users"."username" FROM "users" AS users, "blog" AS blog WHERE ("blog"."user_id" = "users"."id")' ) #NEWLINE# q = User . select ( ) . from_ ( User , Blog , Comment ) . where ( ( ( Blog . user == User . id ) & ( Comment . blog == Blog . pk ) ) ) #NEWLINE# ( sql , params ) = compiler . generate_select ( q ) #NEWLINE# self . assertEqual ( sql , 'SELECT "users"."id", "users"."username" FROM "users" AS users, "blog" AS blog, "comment" AS comment WHERE (("blog"."user_id" = "users"."id") AND ("comment"."blog_id" = "blog"."pk"))' )