def should_execute_processor(self): request = mock() processor = mock() resource = mock() parser = Parser([processor]) when(processor).execute(parser, request, {}).thenReturn(resource) assert parser.follow(request, {}) == resource
def test_parser_follow(): request = mock() processor = mock() resource = mock() parser = Parser([processor]) when(processor).execute(parser, request, {}).thenReturn(resource) assert parser.follow(request, {}) == resource