~thomir-deactivatedaccount/autopilot/trunk-make-click-call-more-pedantic

« back to all changes in this revision

Viewing changes to autopilot/tests/functional/test_dbus_query.py

  • Committer: Thomi Richards
  • Date: 2014-03-13 21:18:53 UTC
  • mfrom: (406.2.45 autopilot)
  • Revision ID: thomi.richards@canonical.com-20140313211853-diuxb3cq8rdsszd7
Merged latest trunk.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
import signal
25
25
from time import time
26
26
from tempfile import mktemp
 
27
from testtools import skipIf
 
28
from testtools.matchers import Equals, NotEquals, raises, LessThan, GreaterThan
27
29
 
 
30
from autopilot import platform
28
31
from autopilot.testcase import AutopilotTestCase
29
 
from testtools.matchers import Equals, NotEquals, raises, LessThan, GreaterThan
30
32
from autopilot.introspection.dbus import StateNotFoundError
31
33
 
32
34
 
 
35
@skipIf(platform.model() != "Desktop", "Only suitable on Desktop (WinMocker)")
33
36
class DbusQueryTests(AutopilotTestCase):
34
37
    """A collection of dbus query tests for autopilot."""
35
38
 
198
201
        self.assertThat(abs(end_time - start_time), LessThan(11))
199
202
 
200
203
 
 
204
@skipIf(platform.model() != "Desktop", "Only suitable on Desktop (WinMocker)")
201
205
class DbusCustomBusTests(AutopilotTestCase):
202
206
    """Test the ability to use custom dbus buses during a test."""
203
207