def get_version(self, settings, article_structure, article_id, version):
     try:
         version_date = article_structure.get_update_date_from_zip_filename()
         if version_date:
             return version_date, None
         version_date = lax_provider.article_publication_date_by_version(article_id, version, settings)
         return version_date, None
     except Exception as e:
         error_message = "Exception when looking up version Date. Message: " + str(e)
         return version_date, error_message
 def test_article_publication_date_by_version(self, mock_lax_provider_article_versions):
     mock_lax_provider_article_versions.return_value = 200, test_data.lax_article_versions_response_data
     result = lax_provider.article_publication_date_by_version('08411', "2", settings_mock)
     self.assertEqual("2015-11-30T00:00:00Z", result)