From 88f806d8e1fa9a86c019cc24603c3d30c98f162e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eray=20=C3=96zkural?= Date: Mon, 17 Oct 2005 20:32:32 +0000 Subject: [PATCH] * test for bug 603 --- tests/dependencytests.py | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 tests/dependencytests.py diff --git a/tests/dependencytests.py b/tests/dependencytests.py new file mode 100644 index 00000000..4d1e719e --- /dev/null +++ b/tests/dependencytests.py @@ -0,0 +1,28 @@ +# Copyright (C) 2005, TUBITAK/UEKAE +# +# This program is free software; you can redistribute it and/or modify it under +# the terms of the GNU General Public License as published by the Free +# Software Foundation; either version 2 of the License, or (at your option) +# any later version. +# +# Please read the COPYING file. +# +# Author: Eray Ozkural + +import unittest +import os + +from pisi.dependency import * + +class DependencyTestCase(unittest.TestCase): + def setUp(self): + pass + + def testDep(self): + # a real life story bug #603 + gtkmmdep = DepInfo() + gtkmmdep.versionFrom = '1.9.1' + gtkmmdep.package = 'atk' + self.assert_( not gtkmmdep.satisfies('atk', '1.8.0', 1) ) + +suite = unittest.makeSuite(DependencyTestCase)