~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bencode.py

  • Committer: Jelmer Vernooij
  • Date: 2009-05-26 09:50:19 UTC
  • mto: (4398.5.1 bencode_serializer)
  • mto: This revision was merged to the branch mainline in revision 4410.
  • Revision ID: jelmer@samba.org-20090526095019-35nkhcnyci25836v
Support bdecode_as_tuple.

Show diffs side-by-side

added added

removed removed

Lines of Context:
157
157
                            [['Alice', 'Bob'], [2, 3]])
158
158
                        ])
159
159
 
 
160
    def test_list_as_tuple(self):
 
161
        self._run_check([('le', ()),
 
162
                         ('li1ei2ei3ee', (1, 2, 3)),
 
163
                         ('ll5:Alice3:Bobeli2ei3eee',
 
164
                            (('Alice', 'Bob'), (2, 3)))
 
165
                        ])
 
166
 
160
167
    def test_dict(self):
161
168
        self._run_check([('de', {}),
162
169
                         ('d3:agei25e4:eyes4:bluee',