mirror of
https://github.com/rpm-software-management/tito.git
synced 2025-02-23 20:22:46 +00:00
Add test for recent pull request.
This commit is contained in:
parent
62c85e6466
commit
373139efd5
1 changed files with 6 additions and 1 deletions
|
@ -97,6 +97,11 @@ class VersionMathTest(unittest.TestCase):
|
|||
expected = "2"
|
||||
self.assertEquals(expected, increase_version(line))
|
||||
|
||||
def test_underscore_release(self):
|
||||
line = "1_PG5"
|
||||
expected = "2_PG5"
|
||||
self.assertEquals(expected, increase_version(line))
|
||||
|
||||
def test_increase_versionless(self):
|
||||
line = "%{app_version}"
|
||||
expected = "%{app_version}"
|
||||
|
@ -114,7 +119,7 @@ class VersionMathTest(unittest.TestCase):
|
|||
|
||||
def test_unknown_version(self):
|
||||
line = "somethingstrange"
|
||||
expected = ""
|
||||
expected = "somethingstrange"
|
||||
self.assertEquals(expected, increase_version(line))
|
||||
|
||||
def test_empty_string(self):
|
||||
|
|
Loading…
Add table
Reference in a new issue