def test_18(self): """ Test Case 18: Test :py:func:`~magrathea.utils.version.get_development_status` with an invalid version status designator. Test is passed if :py:exc:`AssertionError` is raised """ version = (0, 1, 0, 'release', 0) with self.assertRaises(AssertionError): get_development_status(version=version)
def test_17(self): """ Test Case 17: Test :py:func:`~magrathea.utils.version.get_development_status` with a too long version tuple. Test is passed if :py:exc:`AssertionError` is raised """ version = (0, 1, 0, 'final', 0, 1) with self.assertRaises(AssertionError): get_development_status(version=version)
def test_13(self): """ Test Case 13: Test :py:func:`~magrathea.utils.version.get_development_status` with an alpha version with suffix. Test is passed if returned result meets expected string """ version = (0, 1, 0, 'alpha', 1) result = get_development_status(version=version) self.assertEqual(result, 'Development Status :: 3 - Alpha')
def test_15(self): """ Test Case 15: Test :py:func:`~magrathea.utils.version.get_development_status` with an rc version with suffix. Test is passed if returned result meets expected string """ version = (0, 1, 0, 'candidate', 1) result = get_development_status(version=version) self.assertEqual(result, 'Development Status :: 4 - Beta')
def test_11(self): """ Test Case 11: Test :py:func:`~magrathea.utils.version.get_development_status` with a release version with patch level. Test is passed if returned result meets expected string """ version = (0, 1, 1, 'final', 0) result = get_development_status(version=version) self.assertEqual(result, 'Development Status :: 5 - Production/Stable')