* update unit tests
This commit is contained in:
@@ -47,8 +47,8 @@ class ConfigFileTestCase(unittest.TestCase):
|
|||||||
cf = self.cf
|
cf = self.cf
|
||||||
|
|
||||||
#build
|
#build
|
||||||
self.assert_(cf.build.CFLAGS)
|
self.assert_(cf.build.cflags)
|
||||||
self.assert_(cf.build.CXXFLAGS)
|
self.assert_(cf.build.cxxflags)
|
||||||
|
|
||||||
#general
|
#general
|
||||||
self.assert_(cf.general.destinationdirectory)
|
self.assert_(cf.general.destinationdirectory)
|
||||||
|
|||||||
+2
-2
@@ -25,7 +25,7 @@ class FilesTestCase(testcase.TestCase):
|
|||||||
testcase.TestCase.setUp(self, database=False)
|
testcase.TestCase.setUp(self, database=False)
|
||||||
|
|
||||||
def testFileInfo(self):
|
def testFileInfo(self):
|
||||||
f1 = files.File(path = '/usr/bin/zibidi')
|
f1 = files.FileInfo(path = '/usr/bin/zibidi')
|
||||||
f2 = files.File(path = '/usr/bin/kopus', type='exec', size=13, hash="abugubu")
|
f2 = files.FileInfo(path = '/usr/bin/kopus', type='exec', size=13, hash="abugubu")
|
||||||
|
|
||||||
suite = unittest.makeSuite(FilesTestCase)
|
suite = unittest.makeSuite(FilesTestCase)
|
||||||
|
|||||||
Reference in New Issue
Block a user