~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_log.py

  • Committer: Ian Clatworthy
  • Date: 2010-03-26 07:58:58 UTC
  • mto: (5120.1.1 integration)
  • mto: This revision was merged to the branch mainline in revision 5121.
  • Revision ID: ian.clatworthy@canonical.com-20100326075858-umm5rlmaxkf9it9c
it's sqlite3, not just sqlite

Show diffs side-by-side

added added

removed removed

Lines of Context:
877
877
            formatter_kwargs=dict(levels=0))
878
878
 
879
879
 
880
 
class TestGnuChangelogFormatter(TestCaseForLogFormatter):
881
 
 
882
 
    def test_gnu_changelog(self):
883
 
        wt = self.make_standard_commit('nicky', authors=[])
884
 
        self.assertFormatterResult('''\
885
 
2005-11-22  Lorem Ipsum  <test@example.com>
886
 
 
887
 
\tadd a
888
 
 
889
 
''',
890
 
            wt.branch, log.GnuChangelogLogFormatter)
891
 
 
892
 
    def test_with_authors(self):
893
 
        wt = self.make_standard_commit('nicky',
894
 
            authors=['Fooa Fooz <foo@example.com>',
895
 
                     'Bari Baro <bar@example.com>'])
896
 
        self.assertFormatterResult('''\
897
 
2005-11-22  Fooa Fooz  <foo@example.com>
898
 
 
899
 
\tadd a
900
 
 
901
 
''',
902
 
            wt.branch, log.GnuChangelogLogFormatter)
903
 
 
904
 
    def test_verbose(self):
905
 
        wt = self.make_standard_commit('nicky')
906
 
        self.assertFormatterResult('''\
907
 
2005-11-22  John Doe  <jdoe@example.com>
908
 
 
909
 
\t* a:
910
 
 
911
 
\tadd a
912
 
 
913
 
''',
914
 
            wt.branch, log.GnuChangelogLogFormatter,
915
 
            show_log_kwargs=dict(verbose=True))
916
 
 
917
880
class TestGetViewRevisions(tests.TestCaseWithTransport, TestLogMixin):
918
881
 
919
882
    def _get_view_revisions(self, *args, **kwargs):