diff --git a/qubes/tests/vm/adminvm.py b/qubes/tests/vm/adminvm.py index 92643637..16e7c1b1 100644 --- a/qubes/tests/vm/adminvm.py +++ b/qubes/tests/vm/adminvm.py @@ -73,6 +73,9 @@ class TC_00_AdminVM(qubes.tests.QubesTestCase): def test_000_init(self): pass + def test_001_property_icon(self): + self.assertEqual(self.vm.icon, 'adminvm-black') + def test_100_xid(self): self.assertEqual(self.vm.xid, 0) diff --git a/qubes/vm/adminvm.py b/qubes/vm/adminvm.py index 72c8f9b7..dd079f37 100644 --- a/qubes/vm/adminvm.py +++ b/qubes/vm/adminvm.py @@ -99,6 +99,12 @@ class AdminVM(qubes.vm.BaseVM): ''' return 0 + @qubes.stateless_property + def icon(self): # pylint: disable=no-self-use + """freedesktop icon name, suitable for use in + :py:meth:`PyQt4.QtGui.QIcon.fromTheme`""" + return 'adminvm-black' + @property def libvirt_domain(self): '''Libvirt object for dom0.