def feed_response(fixture_name): """ Load a fixture into the body of a fake response. :return: ``Deferred`` that callbacks with the contents of said fixture """ return succeed(FakeResponse(200, Headers({}), fixture(fixture_name)))
def feed_response(fixture_name): """ Load a fixture into the body of a fake response. :return: ``Deferred`` that callbacks with the contents of said fixture """ return succeed(FakeResponse( 200, Headers({}), fixture(fixture_name)))
def setUp(self): """ Load simple atom feed fixture """ self.simple_atom = parse(fixture("simple.atom")) self.simple_entry = entries(self.simple_atom)[0]