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