/breezy/unstable

To get this branch, use:
bzr branch https://code.breezy-vcs.org/breezy/unstable

« back to all changes in this revision

Viewing changes to breezy/plugins/grep/test_grep.py

  • Committer: Jelmer Vernooij
  • Date: 2017-05-24 01:39:33 UTC
  • mfrom: (3815.3776.6)
  • Revision ID: jelmer@jelmer.uk-20170524013933-ir4y4tqtrsiz2ka2
New upstream snapshot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
import re
21
21
import unicodedata as ud
22
22
 
23
 
from bzrlib import tests, osutils
24
 
from bzrlib._termcolor import color_string, FG
 
23
from ... import tests, osutils
 
24
from ..._termcolor import color_string, FG
25
25
 
26
 
from bzrlib.tests.features import (
 
26
from ...tests.features import (
27
27
    ColorFeature,
28
28
    UnicodeFilenameFeature,
29
29
    )
2143
2143
        self.assertEqual(len(out.splitlines()), 1)
2144
2144
 
2145
2145
 
2146
 
# copied from bzrlib.tests.blackbox.test_diff
 
2146
# copied from breezy.tests.blackbox.test_diff
2147
2147
def subst_dates(string):
2148
2148
    """Replace date strings with constant values."""
2149
2149
    return re.sub(r'\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2} [-\+]\d{4}',