/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to breezy/tests/test__annotator.py

  • Committer: Jelmer Vernooij
  • Date: 2017-06-04 19:17:13 UTC
  • mfrom: (0.193.10 trunk)
  • mto: This revision was merged to the branch mainline in revision 6778.
  • Revision ID: jelmer@jelmer.uk-20170604191713-hau7dfsqsl035slm
Bundle the cvs plugin.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2009, 2010 Canonical Ltd
 
1
# Copyright (C) 2009, 2010, 2011 Canonical Ltd
2
2
#
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
16
16
 
17
17
"""Tests for Annotators."""
18
18
 
19
 
from bzrlib import (
 
19
from .. import (
20
20
    annotate,
21
 
    _annotator_py,
22
21
    errors,
23
22
    knit,
24
23
    revision,
26
25
    )
27
26
 
28
27
 
29
 
def load_tests(standard_tests, module, loader):
 
28
def load_tests(loader, standard_tests, pattern):
30
29
    """Parameterize tests for all versions of groupcompress."""
31
30
    suite, _ = tests.permute_tests_for_extension(standard_tests, loader,
32
 
        'bzrlib._annotator_py', 'bzrlib._annotator_pyx')
 
31
        'breezy._annotator_py', 'breezy._annotator_pyx')
33
32
    return suite
34
33
 
35
34
 
138
137
        annotation, lines = self.ann.annotate(key)
139
138
        self.assertEqual(expected_annotation, annotation)
140
139
        if exp_text is None:
141
 
            record = self.vf.get_record_stream([key], 'unordered', True).next()
 
140
            record = next(self.vf.get_record_stream([key], 'unordered', True))
142
141
            exp_text = record.get_bytes_as('fulltext')
143
142
        self.assertEqualDiff(exp_text, ''.join(lines))
144
143