/b-gtk/fix-viz

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/b-gtk/fix-viz

« back to all changes in this revision

Viewing changes to tests/test_revisionview.py

  • Committer: Mikkel Kamstrup Erlandsen
  • Date: 2011-09-28 07:45:39 UTC
  • mto: This revision was merged to the branch mainline in revision 740.
  • Revision ID: mikkel.kamstrup@gmail.com-20110928074539-qxl1yn1bkjel6ir0
Add X-GNOME-Autostart-Delay=30 to bzr-notify.desktop

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
from bzrlib import (
22
22
    tests,
23
23
    )
24
 
from bzrlib import bencode
 
24
try:
 
25
    from bzrlib import bencode
 
26
except ImportError:
 
27
    from bzrlib.util import bencode
25
28
 
26
29
from bzrlib.plugins.gtk import revisionview
27
30
 
40
43
    def assertBufferText(self, text, buffer):
41
44
        """Check the text stored in the buffer."""
42
45
        self.assertEqual(text, buffer.get_text(buffer.get_start_iter(),
43
 
                                               buffer.get_end_iter(),
44
 
                                               True))
 
46
                                               buffer.get_end_iter()))
45
47
 
46
48
    def test_create_view(self):
47
49
        builder = self.make_branch_builder('test')