def test__prepare_template_env(self): template_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), '..', 'py2pack', 'templates') env = py2pack._prepare_template_env(template_dir) self.assertTrue('opensuse.spec' in env.list_templates()) self.assertTrue('parenthesize_version' in env.filters) self.assertTrue('basename' in env.filters)
def test__prepare_template_env(self): template_dir = os.path.join(os.path.dirname( os.path.abspath(__file__)), '..', 'py2pack', 'templates') env = py2pack._prepare_template_env(template_dir) self.assertTrue('opensuse.spec' in env.list_templates()) self.assertTrue('parenthesize_version' in env.filters) self.assertTrue('basename' in env.filters)