#NEWLINE# def test_include_plural( t1 ) : #NEWLINE# #INDENT# camp = next ( t1 . get ( 'campaigns' , limit = { #NEWLINE# #INDENT# 'advertiser' : 105162 , #NEWLINE# #UNINDENT# } , include = 'strategies' , page_limit = 1 ) ) #NEWLINE# assert hasattr ( camp , 'strategies' ) , ( 'Expected strategies included, got: %r' % camp ) #NEWLINE# assert isinstance ( camp . strategies , list ) , ( 'Expected list of strategies, got: %r' % t1 . strategies ) #NEWLINE# assert hasattr ( camp . strategies [ 0 ] , 'id' ) , ( 'Expected strategy instances, got: %r' % camp . strategies [ 0 ] )