qubes.tests.app make pylint happy ♥

This commit is contained in:
Bahtiar `kalkin-` Gadimov 2016-07-13 21:56:50 +02:00
parent 23e52775b6
commit d380fb4aba
No known key found for this signature in database
GPG Key ID: 96ED3C3BA19C3DEE

View File

@ -24,7 +24,6 @@
# #
import os import os
import unittest
import uuid import uuid
import lxml.etree import lxml.etree
@ -43,9 +42,9 @@ class TestVM(qubes.vm.BaseVM):
uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm') uuid = uuid.uuid5(uuid.NAMESPACE_DNS, 'testvm')
def is_halted(self): def is_halted(self):
return False return True
def get_power_state(): def get_power_state(self):
return "Halted" return "Halted"
class TestApp(qubes.tests.TestEmitter): class TestApp(qubes.tests.TestEmitter):
@ -163,7 +162,7 @@ class TC_90_Qubes(qubes.tests.QubesTestCase):
os.unlink('/tmp/qubestest.xml') os.unlink('/tmp/qubestest.xml')
except: except:
pass pass
app = qubes.Qubes.create_empty_store('/tmp/qubestest.xml') qubes.Qubes.create_empty_store('/tmp/qubestest.xml')
@qubes.tests.skipUnlessGit @qubes.tests.skipUnlessGit
def test_900_example_xml_in_doc(self): def test_900_example_xml_in_doc(self):