def test_delete(self): with requests_mock.Mocker() as m: m.delete(requests_mock.ANY, text='{}') self.comment.delete()