/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: Jelmer Vernooij
  • Date: 2011-09-07 23:06:39 UTC
  • Revision ID: jelmer@samba.org-20110907230639-822qnzn738as95l4
testfix: Allow registration of error methods when retrieving avatars. This should fix the daily builds.

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')