/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/git/tests/test_blackbox.py

  • Committer: Jelmer Vernooij
  • Date: 2018-12-11 17:23:43 UTC
  • mfrom: (7221 work)
  • mto: This revision was merged to the branch mainline in revision 7223.
  • Revision ID: jelmer@jelmer.uk-20181211172343-ig78dq5zoqg9rrzl
Merge trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
from .. import (
36
36
    tests,
37
37
    )
 
38
from ...tests.features import PluginLoadedFeature
38
39
 
39
40
 
40
41
class TestGitBlackBox(ExternalBase):
380
381
class GrepTests(ExternalBase):
381
382
 
382
383
    def test_simple_grep(self):
 
384
        self.requireFeature(PluginLoadedFeature('grep'))
383
385
        tree = self.make_branch_and_tree('.', format='git')
384
386
        self.build_tree_contents([('a', 'text for a\n')])
385
387
        tree.add(['a'])
399
401
        output, error = self.run_bzr('st')
400
402
        self.assertEqual(output, '')
401
403
        self.assertEqual(error, '')
 
404
 
 
405
 
 
406
class StatsTests(ExternalBase):
 
407
 
 
408
    def test_simple_stats(self):
 
409
        self.requireFeature(PluginLoadedFeature('stats'))
 
410
        tree = self.make_branch_and_tree('.', format='git')
 
411
        self.build_tree_contents([('a', 'text for a\n')])
 
412
        tree.add(['a'])
 
413
        tree.commit('a commit', committer='Somebody <somebody@example.com>')
 
414
        output, error = self.run_bzr('stats')
 
415
        self.assertEqual(output, '   1 Somebody <somebody@example.com>\n')