From 345d476367ce4e7bd0c379410388cfb70e7e3c90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=2E=C3=87a=C4=9Flar=20Onur?= Date: Tue, 21 Jun 2005 13:19:27 +0000 Subject: [PATCH] =?UTF-8?q?actionsapi=20testleri,=20=C5=9Fimdilik=20sadece?= =?UTF-8?q?=20gnuconfig=20i=C3=A7in.=20autotools=20test=20etmek=20i=C3=A7i?= =?UTF-8?q?n=20ak=C4=B1lc=C4=B1=20bir=20y=C3=B6ntem=20bulamad=C4=B1m=20dah?= =?UTF-8?q?a?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/actionsapitests.py | 12 ++++++++++++ tests/run.py | 6 ++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 tests/actionsapitests.py diff --git a/tests/actionsapitests.py b/tests/actionsapitests.py new file mode 100644 index 00000000..02273a5c --- /dev/null +++ b/tests/actionsapitests.py @@ -0,0 +1,12 @@ +import unittest + +from pisi.actionsapi import gnuconfig + +class gnuConfigTestCase(unittest.TestCase): + def setUp(self): + self.gnuconfig = gnuconfig.gnuconfig_findnewest() + + def testFindNewest(self): + self.assertEqual(self.gnuconfig, '/usr/share/automake-1.4') + +suite = unittest.makeSuite(gnuConfigTestCase) diff --git a/tests/run.py b/tests/run.py index c705ba0b..7f4402e8 100755 --- a/tests/run.py +++ b/tests/run.py @@ -14,14 +14,16 @@ def run_all(): import archivetests import installdbtests import packagedbtests - + import actionsapitest + alltests = unittest.TestSuite(( specfiletests.suite, contexttests.suite, fetchertests.suite, archivetests.suite, installdbtests.suite, - packagedbtests. suite + packagedbtests.suite, + actionsapitests.suite )) runTestSuite(alltests)