[Pymoul-svn] SF.net SVN: pymoul: [221] xtea/trunk
Status: Alpha
Brought to you by:
tiran
|
From: <ti...@us...> - 2007-03-01 17:33:37
|
Revision: 221
http://pymoul.svn.sourceforge.net/pymoul/?rev=221&view=rev
Author: tiran
Date: 2007-03-01 09:33:31 -0800 (Thu, 01 Mar 2007)
Log Message:
-----------
Added tests.py
Modified Paths:
--------------
xtea/trunk/Makefile
xtea/trunk/README.txt
Added Paths:
-----------
xtea/trunk/src/xtea/tests.py
Modified: xtea/trunk/Makefile
===================================================================
--- xtea/trunk/Makefile 2007-03-01 16:34:49 UTC (rev 220)
+++ xtea/trunk/Makefile 2007-03-01 17:33:31 UTC (rev 221)
@@ -32,7 +32,7 @@
# What should the default be?
test:
- $(PYTHON) src/xtea/xtea.py
+ PYTHONPATH=src $(PYTHON) src/xtea/tests.py
egg: egg24 egg25
Modified: xtea/trunk/README.txt
===================================================================
--- xtea/trunk/README.txt 2007-03-01 16:34:49 UTC (rev 220)
+++ xtea/trunk/README.txt 2007-03-01 17:33:31 UTC (rev 221)
@@ -7,19 +7,18 @@
Christian Heimes (christian (at) cheimes (dot) de)
-Paul Chakravarti:
- * Initial implementation of the XTEA algorithm for Python.
+Paul Chakravarti
+----------------
-Christian Heimes:
- * PEP 272 conform implementation using the original crypt(), xtea_decrypt()
- and xtea_encrypt() functions from Paul Chakravarti.
+Initial implementation of the XTEA algorithm for Python.
- * Pyrex/C optimization written based on the wikipedia entry
- http://en.wikipedia.org/wiki/XTEA
+Christian Heimes
+----------------
- * setup.py, Makefile and eggification
+PEP 272 conform implementation using the original crypt(), xtea_decrypt()
+and xtea_encrypt() functions from Paul Chakravarti.
+Pyrex/C optimization written based on the wikipedia entry
+http://en.wikipedia.org/wiki/XTEA
-
-
-
+setup.py, Makefile and eggification
Added: xtea/trunk/src/xtea/tests.py
===================================================================
--- xtea/trunk/src/xtea/tests.py (rev 0)
+++ xtea/trunk/src/xtea/tests.py 2007-03-01 17:33:31 UTC (rev 221)
@@ -0,0 +1,38 @@
+# Copyright (C) 2007 Christian Heimes <christian (at) cheimes (dot) de>
+"""xtea unit tests
+"""
+__author__ = "Christian Heimes"
+__version__ = "$Id: tests.py 216 2007-02-28 12:06:48Z tiran $"
+__revision__ = "$Revision: 216 $"
+
+import os
+import unittest
+from doctest import DocTestSuite
+
+# make sure it's the module and not the package
+from xtea import HOST_ENDIAN
+
+class CXteaTestCase(unittest.TestCase):
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+class PyXteaTestCase(unittest.TestCase):
+ def setUp(self):
+ pass
+
+ def tearDown(self):
+ pass
+
+def test_suite():
+ return unittest.TestSuite((
+ unittest.makeSuite(CXteaTestCase),
+ unittest.makeSuite(PyXteaTestCase),
+ DocTestSuite('xtea'),
+ ))
+
+if __name__ == '__main__':
+ unittest.main(defaultTest="test_suite")
+
Property changes on: xtea/trunk/src/xtea/tests.py
___________________________________________________________________
Name: svn:keywords
+ 'Id Revision'
Name: svn:eol-style
+ native
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|