~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test__static_tuple.py

  • Committer: John Arbash Meinel
  • Date: 2009-10-14 14:03:56 UTC
  • mto: This revision was merged to the branch mainline in revision 4749.
  • Revision ID: john@arbash-meinel.com-20091014140356-f8819b4n4lygkf3u
clean up the test case a little bit.

Show diffs side-by-side

added added

removed removed

Lines of Context:
281
281
 
282
282
    def test_compare_mixed_depths(self):
283
283
        stuple = self.module.StaticTuple
284
 
        k1 = stuple(stuple('launchpad@pqm.canonical.com-20080513123945-5rksdb3kzaszgujl',),
285
 
                    stuple('bjorn@canonical.com-20080513090729-gxckcc7gv01txwl6',))
286
 
        k2 = stuple(stuple(stuple('tim.penhey@canonical.com-20080805095941-04dh2yw94fjtialz',),
287
 
                           stuple('launchpad@pqm.canonical.com-20080805101011-jt59xexr9sdkcjiu',)),
288
 
                    stuple('bjorn@canonical.com-20080513090729-gxckcc7gv01txwl6',))
 
284
        k1 = stuple(stuple('a',), stuple('b',))
 
285
        k2 = stuple(stuple(stuple('c',), stuple('d',)),
 
286
                    stuple('b',))
289
287
        # This requires comparing a StaticTuple to a 'string', and then
290
288
        # interpreting that value in the next higher StaticTuple. This used to
291
289
        # generate a PyErr_BadIternalCall. We now fall back to *something*.