#NEWLINE# @ utils . accounts_wide #NEWLINE# def test_list_accounts( self ) : #NEWLINE# #INDENT# accounts = utils . get_account_for_each_service ( ) #NEWLINE# self . assertGreater ( len ( accounts ) , 0 ) #NEWLINE# self . assertEqual ( len ( sdk . Account . all ( page = 1 , page_size = 1 ) ) , 1 ) #NEWLINE# self . assertEqual ( len ( sdk . Account . all ( page = 2 , page_size = 1 ) ) , 1 ) #NEWLINE# self . assertEqual ( len ( sdk . Account . all ( page = 1 , page_size = 2 ) ) , 2 ) #NEWLINE# for acc in sdk . Account . all ( active = True , page_size = 1000 ) : #NEWLINE# #INDENT# self . assertTrue ( accounts . active ) #NEWLINE# #UNINDENT# for acc in sdk . Account . all ( admin = True , page_size = 100 ) : #NEWLINE# #INDENT# self . assertTrue ( acc . admin )