def test_version_bump_maintains_formatting(self):
     self.assertEqual(replace_version_string('ver="1.2.3"', "ver", "1.2.4"),
                      'ver="1.2.4"')
     self.assertEqual(
         replace_version_string("version = '1.2.3'", "version", "1.2.4"),
         "version = '1.2.4'",
     )
Beispiel #2
0
def test_version_bump_maintains_formatting():
    assert replace_version_string('ver="1.2.3"', "ver",
                                  "1.2.4") == 'ver="1.2.4"'
    assert (replace_version_string("version = '1.2.3'", "version",
                                   "1.2.4") == "version = '1.2.4'")