Example #1
0
 def test_get_output_filename_art(self):
     outfile = generate.get_output_filename('./art/index.html',
                                            'www',
                                            force_unexpanded=False)
     self.assertEqual(outfile, 'www/art/index.html')
     outfile = generate.get_output_filename('art/index.html',
                                            'www',
                                            force_unexpanded=False)
     self.assertEqual(outfile, 'www/art/index.html')
Example #2
0
 def test_get_output_filename_art(self):
     outfile = generate.get_output_filename(
         './art/index.html',
         'www',
         force_unexpanded=False
     )
     self.assertEqual(outfile, 'www/art/index.html')
     outfile = generate.get_output_filename(
         'art/index.html',
         'www',
         force_unexpanded=False
     )
     self.assertEqual(outfile, 'www/art/index.html')
Example #3
0
 def test_get_output_filename_base_design(self):
     outfile = generate.get_output_filename(
         './base_design.html',
         'www',
         force_unexpanded=False
     )
     self.assertFalse(outfile)
Example #4
0
 def test_get_output_filename_base_design(self):
     outfile = generate.get_output_filename(
         './base_design.html',
         'www',
         force_unexpanded=False
     )
     self.assertFalse(outfile)
 def test_get_output_filename_color(self):
     outfile = generate.get_output_filename("./art/color.html", "www", force_unexpanded=False)
     self.assertEqual(outfile, "www/art/color/index.html")
 def test_get_output_filename_base(self):
     outfile = generate.get_output_filename("./base.html", "www", force_unexpanded=False)
     self.assertFalse(outfile)