#NEWLINE# def test_filter_by_env_elements( self ) : #NEWLINE# #INDENT# 'Can filter by environment elements.' #NEWLINE# envs = self . F . EnvironmentFactory . create_full_set ( { #NEWLINE# #INDENT# 'OS' : [ 'Linux' , 'Windows' ] , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . factory ( tester__username = 'Tester 1' , environment = envs [ 0 ] ) #NEWLINE# self . factory ( tester__username = 'Tester 2' , environment = envs [ 1 ] ) #NEWLINE# res = self . get ( params = { #NEWLINE# #INDENT# 'filter-envelement' : envs [ 0 ] . elements . all ( ) [ 0 ] . id , #NEWLINE# #UNINDENT# } ) #NEWLINE# self . assertInList ( envs , 'Tester 1' ) #NEWLINE# self . assertNotInList ( res , 'Tester 2' )