diff options
author | Alec Warner <antarus@gentoo.org> | 2007-01-27 18:16:08 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-01-27 18:16:08 +0000 |
commit | 6ac1f119472d2e41650f4cf7a9bdb17a3afda42c (patch) | |
tree | d993452f7ea513226b6fa4f6fd1ce130796a2914 /tests/portage_dep/test_dep_getcpv.py | |
parent | 8a4a1ddb2255979e94ba5dd0148c4bbfd4920e57 (diff) | |
download | portage-6ac1f119472d2e41650f4cf7a9bdb17a3afda42c.tar.gz portage-6ac1f119472d2e41650f4cf7a9bdb17a3afda42c.tar.bz2 portage-6ac1f119472d2e41650f4cf7a9bdb17a3afda42c.zip |
Move tests into new directory structure
svn path=/main/trunk/; revision=5794
Diffstat (limited to 'tests/portage_dep/test_dep_getcpv.py')
-rw-r--r-- | tests/portage_dep/test_dep_getcpv.py | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/portage_dep/test_dep_getcpv.py b/tests/portage_dep/test_dep_getcpv.py deleted file mode 100644 index 857a408a3..000000000 --- a/tests/portage_dep/test_dep_getcpv.py +++ /dev/null @@ -1,31 +0,0 @@ -# test_dep_getcpv.py -- Portage Unit Testing Functionality -# Copyright 2006 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 -# $Id$ - -from unittest import TestCase -from portage.dep import dep_getcpv - -class DepGetCPV(TestCase): - """ A simple testcase for isvalidatom - """ - - def testDepGetCPV(self): - - prefix_ops = ["<", ">", "=", "~", "!", "<=", - ">=", "!=", "!<", "!>", "!~",""] - - bad_prefix_ops = [ ">~", "<~", "~>", "~<" ] - postfix_ops = [ "*", "" ] - - cpvs = ["sys-apps/portage"] - - for cpv in cpvs: - for prefix in prefix_ops: - for postfix in postfix_ops: - self.assertEqual( dep_getcpv( - prefix + cpv + postfix ), cpv ) - for prefix in bad_prefix_ops: - for postfix in postfix_ops: - self.assertNotEqual( dep_getcpv( - prefix + cpv + postfix ), cpv ) |