def __str__(self): return resource.format_version(self.value)
def test_format_version(): assert resource.format_version([1, 2, 3, 'RC3']) == '1.2.3-RC3'
def test_format_version(): assert resource.format_version([1, 2, 3, "RC3"]) == "1.2.3-RC3"