From 3e34e0b76c25220edcddb08fa802084a5f43f23e Mon Sep 17 00:00:00 2001 From: "A. Murat Eren" Date: Fri, 17 Mar 2006 13:37:18 +0000 Subject: [PATCH] =?UTF-8?q?=20=C5=9Fu=20bi=20gitsin..?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/actionsapitests.py | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/actionsapitests.py b/tests/actionsapitests.py index eaf214a9..43b4f4ea 100644 --- a/tests/actionsapitests.py +++ b/tests/actionsapitests.py @@ -138,5 +138,15 @@ class ActionsAPITestCase(testcase.TestCase): self.assertEqual(open('tests/actionsapitests/echo-file').readlines()[1].strip(), "fiyat hububatları") os.remove('tests/actionsapitests/echo-file') + + def testShelltoolsSystem(self): + from pisi.actionsapi.shelltools import system as s + + self.assertEqual(os.path.exists('tests/actionsapitests/systest'), False) + s('touch tests/actionsapitests/systest') + self.assertEqual(os.path.exists('tests/actionsapitests/systest'), True) + os.remove('tests/actionsapitests/systest') + + suite = unittest.makeSuite(ActionsAPITestCase)