#NEWLINE# def test_get_constraint_matrix_wrong_policy( self ) : #NEWLINE# #INDENT# fake_filter_properties = { #NEWLINE# #INDENT# 'group_policies' : [ 'other' ] , #NEWLINE# 'instance_uuids' : [ ( 'fake_uuid_%s' % x ) for x in range ( 2 ) ] , #NEWLINE# 'num_instances' : 2 , #NEWLINE# #UNINDENT# } #NEWLINE# expected_cons_mat = [ [ True , True ] , [ True , True ] , [ True , True ] ] #NEWLINE# cons_mat = self . constraint_cls ( ) . get_constraint_matrix ( self . fake_hosts , fake_filter_properties ) #NEWLINE# self . assertEqual ( expected_cons_mat , cons_mat )