Skip to content
Snippets Groups Projects
Commit eb9b00b2 authored by Massimiliano Culpo's avatar Massimiliano Culpo
Browse files

versions : added unit tests for the new properties

parent 56448393
Branches
Tags
No related merge requests found
......@@ -423,3 +423,11 @@ def test_satisfaction_with_lists(self):
self.assert_satisfies('4.8.0', '4.2, 4.3:4.8')
self.assert_satisfies('4.8.2', '4.2, 4.3:4.8')
def test_formatted_strings(self):
versions = '1.2.3', '1_2_3', '1-2-3'
for item in versions:
v = Version(item)
self.assertEqual(v.dotted, '1.2.3')
self.assertEqual(v.dashed, '1-2-3')
self.assertEqual(v.underscored, '1_2_3')
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment