~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to testweave.py

  • Committer: Martin Pool
  • Date: 2005-06-28 14:16:17 UTC
  • mto: This revision was merged to the branch mainline in revision 852.
  • Revision ID: mbp@sourcefrog.net-20050628141617-ae889f88333043fd
More modification tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
494
494
 
495
495
        self.log('k._l=' + pformat(k._l))
496
496
 
 
497
        self.assertEqual(k.get(0), text0)
497
498
        self.assertEqual(k.get(1), text1)
498
499
 
499
500
        
511
512
            A Jug of Wine, a Loaf of Bread, -- and Thou
512
513
            Beside me singing in the Wilderness --
513
514
            Oh, Wilderness were Paradise now!""",
 
515
 
 
516
            """A Book of poems underneath the tree,
 
517
            A Jug of Wine, a Loaf of Bread,
 
518
            and Thou
 
519
            Beside me singing in the Wilderness --
 
520
            Oh, Wilderness were Paradise now!
 
521
 
 
522
            -- O. Khayyam""",
 
523
 
 
524
            """A Book of Verses underneath the Bough,
 
525
            A Jug of Wine, a Loaf of Bread,
 
526
            and Thou
 
527
            Beside me singing in the Wilderness --
 
528
            Oh, Wilderness were Paradise now!
 
529
            """,
514
530
            ]
515
531
        texts = [[l.strip() for l in t.split('\n')] for t in rawtexts]
516
532
 
520
536
            ver = k.add(parents, t)
521
537
            parents.add(ver)
522
538
 
 
539
        self.log("k._l=" + pformat(k._l))
 
540
 
523
541
        for i, t in enumerate(texts):
524
542
            self.assertEqual(k.get(i),
525
543
                             t)