mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
tests: osdict: Add coverage testing for driver helpers
Reviewed-by: Cole Robinson <crobinso@redhat.com> Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
parent
7bc40eeed1
commit
92f6109eef
@ -95,3 +95,12 @@ class TestOSDB(unittest.TestCase):
|
||||
self.assertTrue(win10._is_related_to("winxp"))
|
||||
self.assertTrue(win10._is_related_to("win10"))
|
||||
self.assertTrue(win10._is_related_to("fedora26") is False)
|
||||
|
||||
def test_drivers(self):
|
||||
win7 = OSDB.lookup_os("win7")
|
||||
generic = OSDB.lookup_os("generic")
|
||||
self.assertFalse(generic.supports_unattended_drivers("x86_64"))
|
||||
self.assertTrue(win7.supports_unattended_drivers("x86_64"))
|
||||
self.assertFalse(win7.supports_unattended_drivers("fakearch"))
|
||||
self.assertTrue(win7.get_pre_installable_drivers_location("x86_64"))
|
||||
self.assertTrue(win7.get_post_installable_drivers_location("x86_64"))
|
||||
|
Loading…
Reference in New Issue
Block a user