def test_dirprint(self): s = printDirectory(os.path.join(ROOT,"testdir")) expected = """testdir/""" print "expected:" print expected print "got:" print s self.assertEquals(expected, s)
def test_dirprint(self): s = printDirectory(os.path.join(ROOT,"testdir")) expected = """testdir/ |-- subdir1/ | |-- test3.txt | `-- test4.txt |-- subdir2/ | |-- test5.txt | `-- test6.txt |-- test1.txt `-- test2.txt""" print s self.assertEquals(expected, s)
def test_dirprint(self): s = printDirectory(os.path.join(ROOT,"testdir")) expected = """testdir/ |-- test/ | |-- __init__.py | `-- web/ | |-- __init__.py | `-- root.py |-- test1.txt |-- test2.txt `-- twisted/ `-- plugins/ `-- testplugin.py""" print "expected", expected self.assertEquals(expected, s)