summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSybren A. Stüvel <sybren@stuvel.eu>2012-06-18 16:03:32 +0200
committerSybren A. Stüvel <sybren@stuvel.eu>2012-06-18 16:03:32 +0200
commitc167ba3b35e7e067cfce83e4e31cde27de425991 (patch)
treec9dd64a78b0f5a8a73b956e3e50c7a5de81ccb17
parent1db004a59dc723528a2d0f01d61feb16223799af (diff)
downloadrsa-git-c167ba3b35e7e067cfce83e4e31cde27de425991.tar.gz
Tweaked unittests for Python 3.x
-rw-r--r--doc/installation.rst1
-rw-r--r--setup.cfg1
-rw-r--r--tests/test__version200.py12
3 files changed, 1 insertions, 13 deletions
diff --git a/doc/installation.rst b/doc/installation.rst
index a9f779c..0880d6f 100644
--- a/doc/installation.rst
+++ b/doc/installation.rst
@@ -48,6 +48,7 @@ pip or easy_install to install the following packages:
- sphinx
- pyasn1
- tox
+ - unittest2 (Python 2.x) or unittest2py3k (Python 3.x)
Once these are installed, use Mercurial_ to get a copy of the source::
diff --git a/setup.cfg b/setup.cfg
index 510bfb6..fa9a7f6 100644
--- a/setup.cfg
+++ b/setup.cfg
@@ -1,4 +1,3 @@
[nosetests]
verbosity=2
-with-doctest=1
diff --git a/tests/test__version200.py b/tests/test__version200.py
deleted file mode 100644
index 2a179a8..0000000
--- a/tests/test__version200.py
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-
-import unittest2
-from rsa._compat import b
-
-from rsa._version200 import int2bytes, bytes2int
-
-class Test_int2bytes(unittest2.TestCase):
- def test_values(self):
- self.assertEqual(int2bytes(123456789), b('\x07[\xcd\x15'))
- self.assertEqual(bytes2int(int2bytes(123456789)), 123456789)