Revision: 345
http://fclient.svn.sourceforge.net/fclient/?rev=345&view=rev
Author: jUrner
Date: 2008-03-08 03:15:21 -0800 (Sat, 08 Mar 2008)
Log Message:
-----------
tests for iohandler
Added Paths:
-----------
trunk/sandbox/fcp2/test_fcp/test_iohandler.py
Added: trunk/sandbox/fcp2/test_fcp/test_iohandler.py
===================================================================
--- trunk/sandbox/fcp2/test_fcp/test_iohandler.py (rev 0)
+++ trunk/sandbox/fcp2/test_fcp/test_iohandler.py 2008-03-08 11:15:21 UTC (rev 345)
@@ -0,0 +1,53 @@
+"""Unittests for fcp2.iohandler.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)
+
+from fcp2.client import Client
+from fcp2.client import iohandler
+from fcp2 import consts
+from fcp2 import types
+
+
+
+del hack
+#<-- rel import hacks
+#****************************************************************************************
+#
+#****************************************************************************************
+class TestIOHandler(unittest.TestCase):
+
+ def test(self):
+ pass
+
+
+
+#*********************************************************************************
+#
+#*********************************************************************************
+def suite():
+ tests = (
+ TestIOHandler,
+ )
+
+ 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()
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|