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

Unified Diff: client/common_lib/barrier_unittest.py

Issue 6246035: Merge remote branch 'cros/upstream' into master (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/autotest.git@master
Patch Set: patch Created 9 years, 11 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 side-by-side diff with in-line comments
Download patch
Index: client/common_lib/barrier_unittest.py
diff --git a/client/common_lib/barrier_unittest.py b/client/common_lib/barrier_unittest.py
index 37de2bfe124f37c13c1214688d3c0aef7fd523b3..58abeb37f2f9b300331ed1202c6bfbbbfb31f143 100755
--- a/client/common_lib/barrier_unittest.py
+++ b/client/common_lib/barrier_unittest.py
@@ -47,15 +47,13 @@ class barrier_test(unittest.TestCase):
def test_get_host_from_id(self):
- b = barrier.barrier('127.0.0.1#', 'testgethost', 100)
-
- hostname = b._get_host_from_id('my_host')
+ hostname = barrier.get_host_from_id('my_host')
self.assertEqual(hostname, 'my_host')
- hostname = b._get_host_from_id('my_host#')
+ hostname = barrier.get_host_from_id('my_host#')
self.assertEqual(hostname, 'my_host')
- self.assertRaises(error.BarrierError, b._get_host_from_id, '#my_host')
+ self.assertRaises(error.BarrierError, barrier.get_host_from_id, '#my_host')
def test_update_timeout(self):

Powered by Google App Engine
This is Rietveld 408576698