summaryrefslogtreecommitdiffstats
path: root/Monitoring/src/test/python/test.py
diff options
context:
space:
mode:
Diffstat (limited to 'Monitoring/src/test/python/test.py')
-rw-r--r--Monitoring/src/test/python/test.py24
1 files changed, 24 insertions, 0 deletions
diff --git a/Monitoring/src/test/python/test.py b/Monitoring/src/test/python/test.py
new file mode 100644
index 0000000..0908fcd
--- /dev/null
+++ b/Monitoring/src/test/python/test.py
@@ -0,0 +1,24 @@
+'''
+Created on Aug 10, 2011
+
+@author: steger
+'''
+import unittest
+from Service.MonSrvImpl import MonSrvImpl
+
+class Test(unittest.TestCase):
+
+ def setUp(self):
+ self.monSrv = MonSrvImpl()
+
+ def tearDown(self):
+ pass
+
+ def test_echo(self):
+ message = "foo"
+ _, response = self.monSrv.echo(message)
+ self.assertEquals(response, message, "Echo reply differs from expected: %s" % response)
+
+if __name__ == "__main__":
+ #import sys;sys.argv = ['', 'Test.testName']
+ unittest.main()