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

Special-case NULL_REVISION when looking for Git shas.

Show diffs side-by-side

added added

removed removed

Lines of Context:
67
67
        self.assertEquals("property-foo: bar\n",
68
68
            generate_roundtripping_metadata(metadata, "utf-8"))
69
69
 
70
 
    def test_empty(self):
71
 
        metadata = BzrGitRevisionMetadata()
72
 
        self.assertEquals("",
73
 
            generate_roundtripping_metadata(metadata, "utf-8"))
74
 
 
75
70
 
76
71
class ExtractMetadataTests(TestCase):
77
72
 
95
90
revision-id: myrevid
96
91
""", msg)
97
92
 
98
 
    def test_no_metadata(self):
99
 
        metadata = BzrGitRevisionMetadata()
100
 
        msg = inject_bzr_metadata("Foo", metadata, "utf-8")
101
 
        self.assertEquals("Foo", msg)
102
 
 
103
93
 
104
94
class FileIdRoundTripTests(TestCase):
105
95