From ad506d9be36b59137733d5d6ba23b68fcef3baf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beyza=20Ermi=C5=9F?= Date: Thu, 10 Jul 2008 13:00:27 +0000 Subject: [PATCH] Files test case has been added. --- tests/filestest.py | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 tests/filestest.py diff --git a/tests/filestest.py b/tests/filestest.py new file mode 100644 index 00000000..40e1bb62 --- /dev/null +++ b/tests/filestest.py @@ -0,0 +1,19 @@ +import unittest +import pisi.files + +class FilesTestCase(unittest.TestCase): + + def setUp(self): + unittest.TestCase.setUp(self) + + def testFileInfo(self): + file1 = pisi.files.FileInfo(path = '/usr/bin/acpi') + file1.type = 'init' + file1.size = '30' + + file2 = pisi.files.FileInfo(path = '/sbin/blkid', type = 'ctors', size = '8') + + def testFiles(self): + self.files = pisi.files.Files() + self.files.read('repos/pardus-2007/system/base/curl/pspec.xml') +