Example #1
0
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)))
Example #2
0
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)))
Example #3
0
 def setUp(self):
     """
     Load simple atom feed fixture
     """
     self.simple_atom = parse(fixture("simple.atom"))
     self.simple_entry = entries(self.simple_atom)[0]
Example #4
0
 def setUp(self):
     """
     Load simple atom feed fixture
     """
     self.simple_atom = parse(fixture("simple.atom"))
     self.simple_entry = entries(self.simple_atom)[0]