summaryrefslogtreecommitdiffstats
path: root/test/unittest/test_client.py
diff options
context:
space:
mode:
authorAdrian Likins <alikins@redhat.com>2008-07-15 18:14:31 -0400
committerAdrian Likins <alikins@redhat.com>2008-07-15 18:14:31 -0400
commit6e2adcd8271bbdccac72919b1c1a7be93a8aa83b (patch)
tree79a4d66addb1e58fed109618834f935907cbcd0a /test/unittest/test_client.py
parentc1bf7d355601eeb6799478bc8608b5a7e53314b1 (diff)
downloadfunc-6e2adcd8271bbdccac72919b1c1a7be93a8aa83b.tar.gz
func-6e2adcd8271bbdccac72919b1c1a7be93a8aa83b.tar.xz
func-6e2adcd8271bbdccac72919b1c1a7be93a8aa83b.zip
new file, test_func_transmit.py:
unit tests for func-transmit right now, mostly just tests of marshalling data back and forth properly, and some basic calls NOTE: at the moment, it fails alot of these tests test_clients.py: add a couple new tests based on things discovered with test_func_transmit.py
Diffstat (limited to 'test/unittest/test_client.py')
-rw-r--r--test/unittest/test_client.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/test/unittest/test_client.py b/test/unittest/test_client.py
index 8d65176..82d205e 100644
--- a/test/unittest/test_client.py
+++ b/test/unittest/test_client.py
@@ -1,5 +1,13 @@
#!/usr/bin/python
+##
+## Copyright 2008, Various
+## Adrian Likins <alikins@redhat.com>
+##
+## This software may be freely redistributed under the terms of the GNU
+## general public license.
+##
+
import os
import socket
import unittest
@@ -121,6 +129,15 @@ class TestTest(BaseTest):
def test_echo_float(self):
self._echo_test(123.456)
+ def test_echo_big_float(self):
+ self._echo_test(123121232.23)
+
+ def test_echo_bigger_float(self):
+ self._echo_test(234234234234234234234.234234234234234)
+
+ def test_echo_little_float(self):
+ self._echo_test(0.000000000000000000000000000000037)
+
def test_echo_binary(self):
blob = "348dshke354ts0d9urgk"
import xmlrpclib