summaryrefslogtreecommitdiffstats
path: root/pym/portage/tests/xpak/test_decodeint.py
blob: c0f3264dbd1cc4aef23eafe9c5fbaf54cf5b38f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)