예제 #1
0
 def test_paths(self):
     os.chdir(str(self.datadir))
     self.assertEqual(
         paths('[0-9]*', '[a-z]*'),
         ['0.txt', '1.txt', '2.txt', 'a.txt', 'b.txt', 'c.txt'])
예제 #2
0
 def test_paths(self):
     os.chdir(bytes(self.datadir))
     self.assertEquals(paths('[0-9]*', '[a-z]*'),
                       ['0.txt', '1.txt', '2.txt', 'a.txt', 'b.txt', 'c.txt'])