1 # Copyright 2011 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 from portage.const import PORTAGE_PYM_PATH
9 from portage.tests import TestCase
11 class WhirlpoolTestCase(TestCase):
12 def testBundledWhirlpool(self):
13 # execute the tests bundled with the whirlpool module
14 retval = subprocess.call([portage._python_interpreter, "-Wd",
15 os.path.join(PORTAGE_PYM_PATH, "portage/util/whirlpool.py")])
16 self.assertEqual(retval, os.EX_OK)