def main():
- testDirs = ["portage", "portage_util","portage_versions", "portage_dep"]
+ testDirs = ["portage", "portage.util","portage.versions", "portage.dep"]
suite = unittest.TestSuite()
-# tests/portage_dep/__init__.py -- Portage Unit Test functionality
+# tests/portage.dep/__init__.py -- Portage Unit Test functionality
# Copyright 2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# $Id$
from unittest import TestCase
-from portage_dep import dep_getcpv
+from portage.dep import dep_getcpv
class DepGetCPV(TestCase):
""" A simple testcase for isvalidatom
# $Id$
from unittest import TestCase
-from portage_dep import dep_getslot
+from portage.dep import dep_getslot
class DepGetSlot(TestCase):
""" A simple testcase for isvalidatom
# $Id$
from unittest import TestCase
-from portage_dep import get_operator
+from portage.dep import get_operator
class GetOperator(TestCase):
# $Id$
from unittest import TestCase
-from portage_dep import isjustname
+from portage.dep import isjustname
class IsJustName(TestCase):
# $Id$
from unittest import TestCase
-from portage_dep import isvalidatom
+from portage.dep import isvalidatom
class IsValidAtom(TestCase):
""" A simple testcase for isvalidatom
# $Id$
from unittest import TestCase
-from portage_dep import match_from_list
+from portage.dep import match_from_list
class AtomCmpEqualGlob(TestCase):
""" A simple testcase for =* glob matching
-# tests/portage_news/__init__.py -- Portage Unit Test functionality
+# tests/portage.news/__init__.py -- Portage Unit Test functionality
# Copyright 2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
-# tests/portage_util/__init__.py -- Portage Unit Test functionality
+# tests/portage.util/__init__.py -- Portage Unit Test functionality
# Copyright 2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# $Id$
from unittest import TestCase, TestLoader
-from portage_util import grabdict
+from portage.util import grabdict
class GrabDictTestCase(TestCase):
def testNormalizePath(self):
- from portage_util import normalize_path
+ from portage.util import normalize_path
path = "///foo/bar/baz"
good = "/foo/bar/baz"
self.assertEqual(normalize_path(path), good)
class StackDictListTestCase(TestCase):
def testStackDictList(self):
- from portage_util import stack_dictlist
+ from portage.util import stack_dictlist
tests = [ ({'a':'b'},{'x':'y'},False,{'a':['b'],'x':['y']}) ]
tests.append(( {'KEYWORDS':['alpha','x86']},{'KEYWORDS':['-*']},True,{} ))
# $Id$
from unittest import TestCase
-from portage_util import stack_dicts
+from portage.util import stack_dicts
class StackDictsTestCase(TestCase):
# $Id$
from unittest import TestCase
-from portage_util import stack_lists
+from portage.util import stack_lists
class StackListsTestCase(TestCase):
# $Id$
from unittest import TestCase
-from portage_util import unique_array
+from portage.util import unique_array
class UniqueArrayTestCase(TestCase):
def testUniqueArrayPass(self):
"""
- test portage_util.uniqueArray()
+ test portage.util.uniqueArray()
"""
import os
# $Id$
from unittest import TestCase, TestLoader
-from portage_util import varexpand
+from portage.util import varexpand
class VarExpandTestCase(TestCase):
-# tests/portage_versions/__init__.py -- Portage Unit Test functionality
+# tests/portage.versions/__init__.py -- Portage Unit Test functionality
# Copyright 2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
# $Id$
from unittest import TestCase
-from portage_versions import vercmp
+from portage.versions import vercmp
class VerCmpTestCase(TestCase):
- """ A simple testCase for portage_versions.vercmp()
+ """ A simple testCase for portage.versions.vercmp()
"""
def testVerCmpGreater(self):