#NEWLINE# def test_limit( t1 ) : #NEWLINE# #INDENT# pxl = next ( t1 . get ( 'pixel_bundles' , limit = { #NEWLINE# #INDENT# 'advertiser' : 105162 , #NEWLINE# #UNINDENT# } , full = 'pixel_bundle' , page_limit = 1 ) ) #NEWLINE# assert ( pxl . advertiser_id == 105162 ) , ( 'Expected adv ID 105162, got: %d' % pxl . advertiser_id ) #NEWLINE# pxl = next ( t1 . get ( 'pixel_bundles' , limit = { #NEWLINE# #INDENT# 'agency.organization' : 100001 , #NEWLINE# #UNINDENT# } , full = 'pixel_bundle' , page_limit = 1 ) ) #NEWLINE# assert ( pxl . pixel_type != 'event' ) , ( 'Expected non-event pixel, got: %r' % pxl . pixel_type )