Fix Encoder.decode test.

This commit is contained in:
Pavel Zuna 2009-06-16 16:51:29 +02:00 committed by Rob Crittenden
parent c2d2344268
commit 89993d9939

View File

@ -113,7 +113,7 @@ class test_Encoder(ClassChecker):
expected = [u'1', [u'1', u'2', u'3']]
assert_equal(o.decode(['1', ['1', '2', '3']]), expected)
# tuples
expected = (_test_str_d, '1')
expected = (_test_str_d, 1)
assert_equal(o.decode((_test_str_e, 1)), expected)
expected = (u'1', (u'1', u'2', u'3'))
assert_equal(o.decode(('1', ('1', '2', '3'))), expected)