Revision: 510
http://fclient.svn.sourceforge.net/fclient/?rev=510&view=rev
Author: jUrner
Date: 2008-07-05 22:24:47 -0700 (Sat, 05 Jul 2008)
Log Message:
-----------
....
Added Paths:
-----------
trunk/fcp2/src/fcp2/test_fcp/test_types.py
Added: trunk/fcp2/src/fcp2/test_fcp/test_types.py
===================================================================
--- trunk/fcp2/src/fcp2/test_fcp/test_types.py (rev 0)
+++ trunk/fcp2/src/fcp2/test_fcp/test_types.py 2008-07-06 05:24:47 UTC (rev 510)
@@ -0,0 +1,45 @@
+"""Unittests for fcp2.key.py"""
+
+import os, sys
+import socket
+import unittest
+
+#--> rel import hack
+class _RelImportHack(object):
+ def __init__(self, n):
+ fpath = os.path.abspath(__file__)
+ for i in xrange(n): fpath = os.path.dirname(fpath)
+ sys.path.insert(0, fpath)
+ def __del__(self): sys.path.pop(0)
+hack = _RelImportHack(3)
+
+import fcp2
+
+del hack
+#<-- rel import hack
+
+#****************************************************************************************
+#
+#****************************************************************************************
+class Test_TypeByteAmount(unittest.TestCase):
+ pass
+
+
+#*********************************************************************************
+#
+#*********************************************************************************
+def suite():
+ tests = (
+ )
+
+ suite = unittest.TestSuite()
+ for test in tests:
+ suite.addTest(unittest.makeSuite(test))
+ return suite
+
+
+def test():
+ unittest.TextTestRunner(verbosity=1).run(suite())
+
+if __name__ == '__main__':
+ test()
\ No newline at end of file
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|