diff options
author | Alec Warner <antarus@gentoo.org> | 2007-03-06 07:35:22 +0000 |
---|---|---|
committer | Alec Warner <antarus@gentoo.org> | 2007-03-06 07:35:22 +0000 |
commit | 61f72875e61383dcecacf4815a8ef181e2c9cecd (patch) | |
tree | f1ec26d27c5d36f3403d8e0ade46ef333df265ad /pym/portage/tests/xpak | |
parent | Roll our own unittest framework to add skip support. (diff) | |
download | portage-multirepo-61f72875e61383dcecacf4815a8ef181e2c9cecd.tar.gz portage-multirepo-61f72875e61383dcecacf4815a8ef181e2c9cecd.tar.bz2 portage-multirepo-61f72875e61383dcecacf4815a8ef181e2c9cecd.zip |
Update all the unittests to use the new framework, test skipping with isValidAtom, add silly xpak test since I have it 'done'
svn path=/main/trunk/; revision=6182
Diffstat (limited to 'pym/portage/tests/xpak')
-rw-r--r-- | pym/portage/tests/xpak/__init__.py | 4 | ||||
-rw-r--r-- | pym/portage/tests/xpak/test_decodeint.py | 14 |
2 files changed, 18 insertions, 0 deletions
diff --git a/pym/portage/tests/xpak/__init__.py b/pym/portage/tests/xpak/__init__.py new file mode 100644 index 00000000..a3226c13 --- /dev/null +++ b/pym/portage/tests/xpak/__init__.py @@ -0,0 +1,4 @@ +# 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$ diff --git a/pym/portage/tests/xpak/test_decodeint.py b/pym/portage/tests/xpak/test_decodeint.py new file mode 100644 index 00000000..c0f3264d --- /dev/null +++ b/pym/portage/tests/xpak/test_decodeint.py @@ -0,0 +1,14 @@ +# xpak/test_decodeint.py +# Copright Gentoo Foundation 2006 +# Portage Unit Testing Functionality +# $Id$ + +from portage.tests import TestCase +from portage.xpak import decodeint, encodeint + +class testDecodeIntTestCase(TestCase): + + def testDecodeInt(self): + + for n in xrange(1000): + self.assertEqual(decodeint(encodeint(n)), n) |