def test_sort_versions_post(self):
        """test 'libversion.sort_versions()' for post release number"""
        raw = ["1.0.0", "1.0.0.post2", "1.0.0.post3", "1.0.0-post1", "1.0.0.post"]
        expected = ["1.0.0.post3", "1.0.0.post2", "1.0.0-post1", "1.0.0.post", "1.0.0"]
        sortedres = self.stash.libversion.sort_versions(raw)
        self.assertEqual(sortedres, expected)
test 'libversion.sort_versions()' for post release number
tests/lib/test_libversion.py