[Zope3-checkins] CVS: Zope3/src/zope/xmlpickle/tests - test_xmlpickle.py:1.1.2.2
Tim Peters
tim.one@comcast.net
Tue, 24 Dec 2002 21:27:53 -0500
Update of /cvs-repository/Zope3/src/zope/xmlpickle/tests
In directory cvs.zope.org:/tmp/cvs-serv23844/src/zope/xmlpickle/tests
Modified Files:
Tag: NameGeddon-branch
test_xmlpickle.py
Log Message:
Finishing the whitespace normalization checkin. Previous attempt caused
the CVS server to die with a "Too many open files" error in post-commit.
=== Zope3/src/zope/xmlpickle/tests/test_xmlpickle.py 1.1.2.1 => 1.1.2.2 ===
--- Zope3/src/zope/xmlpickle/tests/test_xmlpickle.py:1.1.2.1 Mon Dec 23 14:33:38 2002
+++ Zope3/src/zope/xmlpickle/tests/test_xmlpickle.py Tue Dec 24 21:27:23 2002
@@ -77,12 +77,12 @@
.12345678901234567,
):
self.__test(v)
-
+
def test_int(self):
for v in (-2000000000, -70000, -30000, -3000, -100, -99, -1,
0, 1, 99, 100, 3000, 30000, 70000, 2000000000):
self.__test(v)
-
+
def test_long(self):
for v in (-2000000000l, -70000l, -30000l, -3000l, -100l, -99l, -1l,
0l, 1l, 99l, 100l, 3000l, 30000l, 70000l, 2000000000l):
@@ -91,18 +91,18 @@
v = 30l**i
self.__test(v)
self.__test(-v)
-
+
def test_None(self):
self.__test(None)
def test_reduce(self):
-
+
v = DictSub()
v['spam'] = 1.23
v['eggs'] = 0
v.name = 'v'
self.__test(v)
-
+
def test_string(self):
self.__test('hello\n\tworld',
'<?xml version="1.0" encoding="utf-8" ?>\n'
@@ -176,13 +176,13 @@
</%sobject>
</pickle>
"""
-
+
self.__test(Simple(1,2),
expect % ('classic_', 'Simple', __name__, 'classic_'))
self.__test(newSimple(1,2),
expect % ('', 'newSimple', __name__, ''))
self.__test(newSimple(1,2))
-
+
def test_object_w_funny_state(self):
o = Simple(1,2)
o.__dict__[(5,6,7)] = None
@@ -190,7 +190,7 @@
o = newSimple(1,2)
o.__dict__[(5,6,7)] = None
self.__test(o)
-
+
def test_object_w_initial_args(self):
o = WInitial([1,2,3], None)
o.foo = 'bar'
@@ -198,7 +198,7 @@
o = newWInitial([1,2,3], None)
o.foo = 'bar'
self.__test(o)
-
+
def test_dict(self):
self.__test({})
self.__test({1.23: u'foo', 'spam': [123]})
@@ -217,17 +217,17 @@
t = l, l
l.append(t)
self.__test(l)
-
-
+
+
def test_list(self):
self.__test([])
self.__test([1,2,3])
self.__test(range(1000))
-
+
def test_tuple(self):
self.__test(())
self.__test((1,2,3))
-
+
class Simple:
def __init__(self, *a):
@@ -249,7 +249,7 @@
class newSimple(Simple, object): pass
class newWInitial(WInitial, object): pass
-
+
class DictSub(dict):
def __eq__(self, other):