~barry/autopilot/lp1488175

« back to all changes in this revision

Viewing changes to autopilot/tests/unit/test_globals.py

  • Committer: CI bot
  • Author(s): Leonardo Arias Fonseca, Thomi Richards, Christopher Lee, Leo Arias, nskaggs
  • Date: 2014-10-31 21:49:56 UTC
  • mfrom: (493.1.26 trunk)
  • Revision ID: ps-jenkins@lists.canonical.com-20141031214956-oaptmny2t0vgj973
Autopilot release:
  - Add support for large timestamps
  - Add per-test timeouts
  - Add press duration to touch clicks
  - Improved logging
  - Make own autopilot functional test runnable with testtools runner.   
Approved by: Nicholas Skaggs, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
56
56
        # the original value after each test has run:
57
57
        restore_value(self, _g, '_default_timeout_value')
58
58
        restore_value(self, _g, '_long_timeout_value')
 
59
        restore_value(self, _g, '_test_timeout')
59
60
 
60
61
    def test_default_timeout_values(self):
61
62
        self.assertEqual(10.0, _g.get_default_timeout_period())
70
71
        new_value = self.getUniqueInteger()
71
72
        _g.set_long_timeout_period(new_value)
72
73
        self.assertEqual(new_value, _g.get_long_timeout_period())
 
74
 
 
75
    def test_can_set_test_timeout(self):
 
76
        new_value = self.getUniqueInteger()
 
77
        _g.set_test_timeout(new_value)
 
78
        self.assertEqual(new_value, _g.get_test_timeout())