Example #1
0
    def test_format(self):
        self.assertEqual(
            b"0000000000000000000000000000000000000000 "
            b"49030649db3dfec5a9bc03e5dde4255a14499f16 Jelmer Vernooij "
            b"<*****@*****.**> 1446552482 +0000	"
            b"clone: from git://jelmer.uk/samba",
            format_reflog_line(
                b"0000000000000000000000000000000000000000",
                b"49030649db3dfec5a9bc03e5dde4255a14499f16",
                b"Jelmer Vernooij <*****@*****.**>",
                1446552482,
                0,
                b"clone: from git://jelmer.uk/samba",
            ),
        )

        self.assertEqual(
            b"0000000000000000000000000000000000000000 "
            b"49030649db3dfec5a9bc03e5dde4255a14499f16 Jelmer Vernooij "
            b"<*****@*****.**> 1446552482 +0000	"
            b"clone: from git://jelmer.uk/samba",
            format_reflog_line(
                None,
                b"49030649db3dfec5a9bc03e5dde4255a14499f16",
                b"Jelmer Vernooij <*****@*****.**>",
                1446552482,
                0,
                b"clone: from git://jelmer.uk/samba",
            ),
        )
Example #2
0
    def test_format(self):
        self.assertEqual(
            b'0000000000000000000000000000000000000000 '
            b'49030649db3dfec5a9bc03e5dde4255a14499f16 Jelmer Vernooij '
            b'<*****@*****.**> 1446552482 +0000	'
            b'clone: from git://jelmer.uk/samba',
            format_reflog_line(
                b'0000000000000000000000000000000000000000',
                b'49030649db3dfec5a9bc03e5dde4255a14499f16',
                b'Jelmer Vernooij <*****@*****.**>',
                1446552482, 0, b'clone: from git://jelmer.uk/samba'))

        self.assertEqual(
            b'0000000000000000000000000000000000000000 '
            b'49030649db3dfec5a9bc03e5dde4255a14499f16 Jelmer Vernooij '
            b'<*****@*****.**> 1446552482 +0000	'
            b'clone: from git://jelmer.uk/samba',
            format_reflog_line(
                None,
                b'49030649db3dfec5a9bc03e5dde4255a14499f16',
                b'Jelmer Vernooij <*****@*****.**>',
                1446552482, 0, b'clone: from git://jelmer.uk/samba'))
Example #3
0
    def test_format(self):
        self.assertEqual(
            b'0000000000000000000000000000000000000000 '
            b'49030649db3dfec5a9bc03e5dde4255a14499f16 Jelmer Vernooij '
            b'<*****@*****.**> 1446552482 +0000	'
            b'clone: from git://jelmer.uk/samba',
            format_reflog_line(b'0000000000000000000000000000000000000000',
                               b'49030649db3dfec5a9bc03e5dde4255a14499f16',
                               b'Jelmer Vernooij <*****@*****.**>',
                               1446552482, 0,
                               b'clone: from git://jelmer.uk/samba'))

        self.assertEqual(
            b'0000000000000000000000000000000000000000 '
            b'49030649db3dfec5a9bc03e5dde4255a14499f16 Jelmer Vernooij '
            b'<*****@*****.**> 1446552482 +0000	'
            b'clone: from git://jelmer.uk/samba',
            format_reflog_line(None,
                               b'49030649db3dfec5a9bc03e5dde4255a14499f16',
                               b'Jelmer Vernooij <*****@*****.**>',
                               1446552482, 0,
                               b'clone: from git://jelmer.uk/samba'))