예제 #1
0
 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)
예제 #2
0
 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)