#NEWLINE# def test_entity_mgr_create_check_invalid_details( self ) : #NEWLINE# #INDENT# ent = self . entity #NEWLINE# mgr = ent . _check_manager #NEWLINE# err = exc . BadRequest ( 400 ) #NEWLINE# err . message = "Validation error for key 'fake'" #NEWLINE# err . details = "Validation failed for 'fake'" #NEWLINE# mgr . api . method_post = Mock ( side_effect = self ) #NEWLINE# self . assertRaises ( exc . BadRequest , mgr . create_check , ent , details = 'fake' , target_alias = 'fake' , check_type = 'remote.fake' , monitoring_zones_poll = 'fake' )