/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

  • Committer: Jelmer Vernooij
  • Date: 2010-05-13 12:34:24 UTC
  • mto: (0.200.912 trunk)
  • mto: This revision was merged to the branch mainline in revision 6960.
  • Revision ID: jelmer@samba.org-20100513123424-c1sk9vcg2ekrcsol
Some refactoring, support proper file ids in revision deltas.

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