Filter out the .svn directories so that the test passes.

git-svn-id: http://svn.robofab.com/branches/ufo3k@270 b5fa9d6c-a76f-4ffd-b3cb-f825fc41095c
This commit is contained in:
Tal Leming 2011-09-12 20:36:40 +00:00
parent 7302683af3
commit 6b6bb74534

View File

@ -1568,11 +1568,15 @@ class UFO3ReadDataTestCase(unittest.TestCase):
def testUFOReaderDataDirectoryListing(self):
reader = UFOReader(self.getFontPath())
found = reader.getDataDirectoryListing()
# filter out the .svn
found = [path for path in found if ".svn" not in path]
found = list(sorted(found))
expected = [
'data/org.unifiedfontobject.directory/bar/lol.txt',
'data/org.unifiedfontobject.directory/foo.txt',
'data/org.unifiedfontobject.file.txt'
]
expected = list(sorted(expected))
self.assertEqual(found, expected)
def testUFOReaderBytesFromPath(self):
@ -1597,6 +1601,7 @@ class UFO3ReadDataTestCase(unittest.TestCase):
fileObject = reader.getReadFileForPath("data/org.unifiedfontobject.doesNotExist")
self.assertEqual(fileObject, None)
class UFO3WriteDataTestCase(unittest.TestCase):
def setUp(self):
@ -1678,6 +1683,7 @@ class UFO3WriteDataTestCase(unittest.TestCase):
self.assertRaises(UFOLibError, writer.removeFileForPath, path="metainfo.plist")
self.assertRaises(UFOLibError, writer.removeFileForPath, path="data/org.unifiedfontobject.doesNotExist.txt")
class ConversionFunctionsTestCase(unittest.TestCase):
def tearDown(self):