blob: 9f9a60597362de7a758b6f4b6bf77c4257d957fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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))
|