def test_delete_portal_not_found(self): portal = UnityIscsiPortal.get(cli=t_rest(), _id='if_20') def f(): portal.delete() assert_that(f, raises(UnityResourceNotFoundError))
def test_delete_portal(self): portal = UnityIscsiPortal.get(cli=t_rest(), _id='if_4') portal.delete()