#NEWLINE# def test_validate_with_bad_templates( self , template_service ) : #NEWLINE# #INDENT# mock_template = Mock ( ) #NEWLINE# mock_template . validate . return_value = False #NEWLINE# template_service . template_store . filter . return_value = [ self ] #NEWLINE# assert ( False is template_service . validate ( ) )