Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(238)

Side by Side Diff: packages/infra_libs/infra_libs/ts_mon/common/test/interface_test.py

Issue 2179853002: Added packages/infra_libs as the first Python package. (Closed) Base URL: https://chromium.googlesource.com/infra/infra.git@master
Patch Set: Final rebase (no actual changes) Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 import functools 5 import functools
6 import threading 6 import threading
7 import time 7 import time
8 import unittest 8 import unittest
9 9
10 import mock 10 import mock
(...skipping 287 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 298
299 def test_sleeps_for_minimum_zero_secs(self): 299 def test_sleeps_for_minimum_zero_secs(self):
300 self.t.start() 300 self.t.start()
301 301
302 # Flush takes 65 seconds. 302 # Flush takes 65 seconds.
303 interface.flush.side_effect = functools.partial(self.increment_time, 65) 303 interface.flush.side_effect = functools.partial(self.increment_time, 65)
304 304
305 self.assertInRange(30, 60, self.stop_event.timeout_wait()) 305 self.assertInRange(30, 60, self.stop_event.timeout_wait())
306 self.assertAlmostEqual(0, self.stop_event.timeout_wait()) 306 self.assertAlmostEqual(0, self.stop_event.timeout_wait())
307 self.assertAlmostEqual(0, self.stop_event.timeout_wait()) 307 self.assertAlmostEqual(0, self.stop_event.timeout_wait())
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698