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'])
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'])