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