[Libosinfo] [osinfo-db PATCH 1/2] tests: get the release/EOL dates

Pino Toscano ptoscano at redhat.com
Tue May 21 12:01:38 UTC 2019


---
 tests/osinfo.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/tests/osinfo.py b/tests/osinfo.py
index 3585f44..20c1866 100644
--- a/tests/osinfo.py
+++ b/tests/osinfo.py
@@ -137,6 +137,14 @@ class Os(_XMLBase):
     def get_network_install_resources(self, node):
         return self._get_resources(node, 'network-install')
 
+    @_cache_property
+    def release_date(self):
+        return self._get_text('release-date')
+
+    @_cache_property
+    def eol_date(self):
+        return self._get_text('eol-date')
+
 
 class Resources(_XMLBase):
     @_cache_property
-- 
2.21.0




More information about the Libosinfo mailing list