示例#1
0
 def test_iter_dir_absolute_path(self):
     ps = PanScanner()
     directory = get_absolute_path('test_dir')
     self.assertEqual([v for v in ps.iter_dir(directory)], [
         get_absolute_path('test_dir/binary.png'),
         get_absolute_path('test_dir/without.py'),
         get_absolute_path('test_dir/deeper/contains.log')
     ])
示例#2
0
文件: base.py 项目: Birdback/pan-scan
 def test_iter_dir_absolute_path(self):
     ps = PanScanner()
     directory = get_absolute_path('test_dir')
     self.assertEqual(
         [v for v in ps.iter_dir(directory)],
         [get_absolute_path('test_dir/binary.png'),
          get_absolute_path('test_dir/without.py'),
          get_absolute_path('test_dir/deeper/contains.log')])