'Tests deleting a invalid/non existing member raises right exception'

def test_delete_member_invalid(self):

    self.api = test_utils.FakeAuthMiddleware(rserver.API(self.mapper), is_admin=True)
    res = self.get_api_response_ext(http.NOT_FOUND, method='DELETE', url=('/images/%s/members/pattieblack' % UUID2))
    self.assertIn('Membership    could    not    be    found', res.body)
