def METHOD_NAME(self, code, content):
    yield self.createReporter()
    self._http.expect('post', '', code=code, content=content,
                      json=BuildDictLookAlike())
    build = yield self.insert_build_finished(SUCCESS)
    yield self.sp._got_event(('builds', 20, 'finished'), build)