/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_log.py

  • Committer: Jelmer Vernooij
  • Date: 2018-07-13 00:42:16 UTC
  • mfrom: (7027.3.8 python3-n)
  • mto: This revision was merged to the branch mainline in revision 7039.
  • Revision ID: jelmer@jelmer.uk-20180713004216-p2cv2oxlrb7wg4l0
merge trunk

Show diffs side-by-side

added added

removed removed

Lines of Context:
500
500
        bug #4676
501
501
        """
502
502
        wt = self.make_standard_commit('test_verbose_log', authors=[])
503
 
        self.assertFormatterResult('''\
 
503
        self.assertFormatterResult(b'''\
504
504
------------------------------------------------------------
505
505
revno: 1
506
506
committer: Lorem Ipsum <test@example.com>
1008
1008
 
1009
1009
    def test_gnu_changelog(self):
1010
1010
        wt = self.make_standard_commit('nicky', authors=[])
1011
 
        self.assertFormatterResult('''\
 
1011
        self.assertFormatterResult(b'''\
1012
1012
2005-11-22  Lorem Ipsum  <test@example.com>
1013
1013
 
1014
1014
\tadd a
1020
1020
        wt = self.make_standard_commit('nicky',
1021
1021
            authors=['Fooa Fooz <foo@example.com>',
1022
1022
                     'Bari Baro <bar@example.com>'])
1023
 
        self.assertFormatterResult('''\
 
1023
        self.assertFormatterResult(b'''\
1024
1024
2005-11-22  Fooa Fooz  <foo@example.com>
1025
1025
 
1026
1026
\tadd a
1030
1030
 
1031
1031
    def test_verbose(self):
1032
1032
        wt = self.make_standard_commit('nicky')
1033
 
        self.assertFormatterResult('''\
 
1033
        self.assertFormatterResult(b'''\
1034
1034
2005-11-22  John Doe  <jdoe@example.com>
1035
1035
 
1036
1036
\t* a:
1462
1462
            self.wt.branch, formatter, formatter_kwargs=formatter_kwargs)
1463
1463
 
1464
1464
    def test_line_default(self):
1465
 
        self.assertFormatterResult(log.LineLogFormatter, None, """\
 
1465
        self.assertFormatterResult(log.LineLogFormatter, None, b"""\
1466
1466
1: John Doe 2005-11-22 add a
1467
1467
""")
1468
1468
 
1469
1469
    def test_line_committer(self):
1470
 
        self.assertFormatterResult(log.LineLogFormatter, 'committer', """\
 
1470
        self.assertFormatterResult(log.LineLogFormatter, 'committer', b"""\
1471
1471
1: Lorem Ipsum 2005-11-22 add a
1472
1472
""")
1473
1473
 
1474
1474
    def test_line_first(self):
1475
 
        self.assertFormatterResult(log.LineLogFormatter, 'first', """\
 
1475
        self.assertFormatterResult(log.LineLogFormatter, 'first', b"""\
1476
1476
1: John Doe 2005-11-22 add a
1477
1477
""")
1478
1478
 
1479
1479
    def test_line_all(self):
1480
 
        self.assertFormatterResult(log.LineLogFormatter, 'all', """\
 
1480
        self.assertFormatterResult(log.LineLogFormatter, 'all', b"""\
1481
1481
1: John Doe, Jane Rey 2005-11-22 add a
1482
1482
""")
1483
1483
 
1484
1484
 
1485
1485
    def test_short_default(self):
1486
 
        self.assertFormatterResult(log.ShortLogFormatter, None, """\
 
1486
        self.assertFormatterResult(log.ShortLogFormatter, None, b"""\
1487
1487
    1 John Doe\t2005-11-22
1488
1488
      add a
1489
1489
 
1490
1490
""")
1491
1491
 
1492
1492
    def test_short_committer(self):
1493
 
        self.assertFormatterResult(log.ShortLogFormatter, 'committer', """\
 
1493
        self.assertFormatterResult(log.ShortLogFormatter, 'committer', b"""\
1494
1494
    1 Lorem Ipsum\t2005-11-22
1495
1495
      add a
1496
1496
 
1497
1497
""")
1498
1498
 
1499
1499
    def test_short_first(self):
1500
 
        self.assertFormatterResult(log.ShortLogFormatter, 'first', """\
 
1500
        self.assertFormatterResult(log.ShortLogFormatter, 'first', b"""\
1501
1501
    1 John Doe\t2005-11-22
1502
1502
      add a
1503
1503
 
1504
1504
""")
1505
1505
 
1506
1506
    def test_short_all(self):
1507
 
        self.assertFormatterResult(log.ShortLogFormatter, 'all', """\
 
1507
        self.assertFormatterResult(log.ShortLogFormatter, 'all', b"""\
1508
1508
    1 John Doe, Jane Rey\t2005-11-22
1509
1509
      add a
1510
1510
 
1511
1511
""")
1512
1512
 
1513
1513
    def test_long_default(self):
1514
 
        self.assertFormatterResult(log.LongLogFormatter, None, """\
 
1514
        self.assertFormatterResult(log.LongLogFormatter, None, b"""\
1515
1515
------------------------------------------------------------
1516
1516
revno: 1
1517
1517
author: John Doe <jdoe@example.com>, Jane Rey <jrey@example.com>
1523
1523
""")
1524
1524
 
1525
1525
    def test_long_committer(self):
1526
 
        self.assertFormatterResult(log.LongLogFormatter, 'committer', """\
 
1526
        self.assertFormatterResult(log.LongLogFormatter, 'committer', b"""\
1527
1527
------------------------------------------------------------
1528
1528
revno: 1
1529
1529
committer: Lorem Ipsum <test@example.com>
1534
1534
""")
1535
1535
 
1536
1536
    def test_long_first(self):
1537
 
        self.assertFormatterResult(log.LongLogFormatter, 'first', """\
 
1537
        self.assertFormatterResult(log.LongLogFormatter, 'first', b"""\
1538
1538
------------------------------------------------------------
1539
1539
revno: 1
1540
1540
author: John Doe <jdoe@example.com>
1546
1546
""")
1547
1547
 
1548
1548
    def test_long_all(self):
1549
 
        self.assertFormatterResult(log.LongLogFormatter, 'all', """\
 
1549
        self.assertFormatterResult(log.LongLogFormatter, 'all', b"""\
1550
1550
------------------------------------------------------------
1551
1551
revno: 1
1552
1552
author: John Doe <jdoe@example.com>, Jane Rey <jrey@example.com>
1558
1558
""")
1559
1559
 
1560
1560
    def test_gnu_changelog_default(self):
1561
 
        self.assertFormatterResult(log.GnuChangelogLogFormatter, None, """\
 
1561
        self.assertFormatterResult(log.GnuChangelogLogFormatter, None, b"""\
1562
1562
2005-11-22  John Doe  <jdoe@example.com>
1563
1563
 
1564
1564
\tadd a
1566
1566
""")
1567
1567
 
1568
1568
    def test_gnu_changelog_committer(self):
1569
 
        self.assertFormatterResult(log.GnuChangelogLogFormatter, 'committer', """\
 
1569
        self.assertFormatterResult(log.GnuChangelogLogFormatter, 'committer', b"""\
1570
1570
2005-11-22  Lorem Ipsum  <test@example.com>
1571
1571
 
1572
1572
\tadd a
1574
1574
""")
1575
1575
 
1576
1576
    def test_gnu_changelog_first(self):
1577
 
        self.assertFormatterResult(log.GnuChangelogLogFormatter, 'first', """\
 
1577
        self.assertFormatterResult(log.GnuChangelogLogFormatter, 'first', b"""\
1578
1578
2005-11-22  John Doe  <jdoe@example.com>
1579
1579
 
1580
1580
\tadd a
1582
1582
""")
1583
1583
 
1584
1584
    def test_gnu_changelog_all(self):
1585
 
        self.assertFormatterResult(log.GnuChangelogLogFormatter, 'all', """\
 
1585
        self.assertFormatterResult(log.GnuChangelogLogFormatter, 'all', b"""\
1586
1586
2005-11-22  John Doe  <jdoe@example.com>, Jane Rey  <jrey@example.com>
1587
1587
 
1588
1588
\tadd a