Beispiel #1
0
 def test_generate_revision_metadata_properties_newline(self):
     self.assertEquals("properties: \n" +
             "\tpropbla: bloe\n" +
             "\tpropbla: bla\n",
             generate_revision_metadata(None, None,
                 None, {"propbla": "bloe\nbla"}))
Beispiel #2
0
 def test_generate_revision_metadata_committer(self):
     self.assertEquals("committer: bla\n",
             generate_revision_metadata(None, None, "bla", None))
Beispiel #3
0
 def test_generate_revision_metadata_timestamp(self):
     self.assertEquals("timestamp: 2005-06-30 17:38:52.350850105 +0000\n",
             generate_revision_metadata(1120153132.350850105, 0,
                 None, None))
Beispiel #4
0
 def test_generate_revision_metadata_none(self):
     self.assertEquals("",
             generate_revision_metadata(None, None, None, None))