def test_last_supported_date(self, platform, version, last_supported_date): self.set_app_version_config() self.assertEqual( last_supported_date, AppVersionConfig.last_supported_date(platform, version))
def test_no_configs_available(self, platform, version): self.assertIsNone(AppVersionConfig.latest_version(platform)) self.assertIsNone( AppVersionConfig.last_supported_date(platform, version))
def _get_last_supported_date(self, platform_name, platform_version): """ Get expiry date of app version for a platform. """ return AppVersionConfig.last_supported_date( platform_name, platform_version) or self.NO_LAST_SUPPORTED_DATE
def _get_last_supported_date(self, platform_name, platform_version): """ Get expiry date of app version for a platform. """ return AppVersionConfig.last_supported_date(platform_name, platform_version) or self.NO_LAST_SUPPORTED_DATE
def test_last_supported_date(self, platform, version, last_supported_date): self.set_app_version_config() self.assertEqual(last_supported_date, AppVersionConfig.last_supported_date(platform, version))
def test_no_configs_available(self, platform, version): self.assertIsNone(AppVersionConfig.latest_version(platform)) self.assertIsNone(AppVersionConfig.last_supported_date(platform, version))