def setUp(self): self.dummy = DummyBackend() self.example_message = self.dummy.build_message('some_message') self.example_message.frm = self.dummy.build_identifier('noterr') self.example_message.to = self.dummy.build_identifier('err') assets_path = os.path.join(os.path.dirname(__file__), 'assets') templating.template_path.append(templating.make_templates_path(assets_path)) templating.env = templating.Environment(loader=templating.FileSystemLoader(templating.template_path))
def dummy_execute_and_send(): dummy = DummyBackend() example_message = dummy.build_message('some_message') example_message.frm = dummy.build_identifier('noterr') example_message.to = dummy.build_identifier('err') assets_path = os.path.join(os.path.dirname(__file__), 'assets') templating.template_path.append(templating.make_templates_path(assets_path)) templating.env = templating.Environment(loader=templating.FileSystemLoader(templating.template_path)) return dummy, example_message
def setUp(self): self.dummy = DummyBackend() self.example_message = self.dummy.build_message("some_message") self.example_message.frm = "noterr@localhost/resource" self.example_message.to = "err@localhost/resource" assets_path = os.path.dirname(__file__) + os.sep + "assets" templating.template_path.append( templating.make_templates_path(assets_path)) templating.env = templating.Environment( loader=templating.FileSystemLoader(templating.template_path))