Ejemplo n.º 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)))
Ejemplo n.º 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)))
Ejemplo n.º 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]
Ejemplo n.º 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]