diff options
author | Alec Warner <antarus@gentoo.org> | 2007-01-10 13:45:27 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-01-10 13:45:27 +0000 |
commit | 68cee055aba91242c664f4c59606ffce73f4ce37 (patch) | |
tree | bf1bf099aef4556b7ddc1ec6246febea82d8606c /tests/portage_util/test_normalizedPath.py | |
parent | d8b1ff0c9f48c7ada77b58ea3d4229cc028ac776 (diff) | |
download | portage-68cee055aba91242c664f4c59606ffce73f4ce37.tar.gz portage-68cee055aba91242c664f4c59606ffce73f4ce37.tar.bz2 portage-68cee055aba91242c664f4c59606ffce73f4ce37.zip |
split out util tests
svn path=/main/trunk/; revision=5529
Diffstat (limited to 'tests/portage_util/test_normalizedPath.py')
-rw-r--r-- | tests/portage_util/test_normalizedPath.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/portage_util/test_normalizedPath.py b/tests/portage_util/test_normalizedPath.py new file mode 100644 index 000000000..9f9a60597 --- /dev/null +++ b/tests/portage_util/test_normalizedPath.py @@ -0,0 +1,16 @@ +# test_normalizePath.py -- Portage Unit Testing Functionality +# Copyright 2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id: test_vercmp.py 5213 2006-12-08 00:12:41Z antarus $ + +from unittest import TestCase + +class NormalizePathTestCase(TestCase): + + def testNormalizePath(self): + + from portage_util import normalize_path + path = "///foo/bar/baz" + good = "/foo/bar/baz" + self.failUnless(normalize_path(path) == good, msg="NormalizePath(%s) failed to produce %s" % (path, good)) + |