/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

Handle empty metadata.

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
 
70
75
 
71
76
class ExtractMetadataTests(TestCase):
72
77
 
90
95
revision-id: myrevid
91
96
""", msg)
92
97
 
 
98
    def test_no_metadata(self):
 
99
        metadata = BzrGitRevisionMetadata()
 
100
        msg = inject_bzr_metadata("Foo", metadata, "utf-8")
 
101
        self.assertEquals("Foo", msg)
 
102
 
93
103
 
94
104
class FileIdRoundTripTests(TestCase):
95
105