Beispiel #1
0
 def test_single_file_no_input_extension_no_output(self):
     self.assertEqual(['/a/b'], render.map_input_to_output(['/a/b'], None))
Beispiel #2
0
 def test_single_file_recursive_no_output(self):
     self.assertEqual(['/a/b.txt'],
                      render.map_input_to_output(['/a/b.txt'], None, True))
Beispiel #3
0
 def test_multi_file_recursive_output_extension(self):
     self.assertEqual(['/c/d.biz/b.txt', '/c/d.biz/j.doc'],
                      render.map_input_to_output(['/a/b.txt', '/g/f/j.doc'],
                                                 '/c/d.biz', True))
Beispiel #4
0
 def test_single_file_recursive_output_extension(self):
     self.assertEqual(['/c/d.biz/b.txt'],
                      render.map_input_to_output(['/a/b.txt'], '/c/d.biz',
                                                 True))
Beispiel #5
0
 def test_single_file_recursive_trailing_slash(self):
     self.assertEqual(['/c/d/b.txt'],
                      render.map_input_to_output(['/a/b.txt'], '/c/d/',
                                                 True))
Beispiel #6
0
 def test_single_file_no_input_extension(self):
     self.assertEqual(['/c/d.biz'],
                      render.map_input_to_output(['/a/b'], '/c/d.biz'))
Beispiel #7
0
 def test_single_file(self):
     self.assertEqual(['/c/d.biz'],
                      render.map_input_to_output(['/a/b.txt'], '/c/d.biz'))