OLD | NEW |
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2012 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 # TODO(nduca): Rewrite what some of these tests to use mocks instead of | 5 # TODO(nduca): Rewrite what some of these tests to use mocks instead of |
6 # actually talking to the device. This would improve our coverage quite | 6 # actually talking to the device. This would improve our coverage quite |
7 # a bit. | 7 # a bit. |
8 import unittest | 8 import unittest |
9 import socket | 9 import socket |
10 | 10 |
(...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
154 cri = cros_interface.CrOSInterface( | 154 cri = cros_interface.CrOSInterface( |
155 remote, | 155 remote, |
156 options_for_unittests.GetCopy().cros_ssh_identity) | 156 options_for_unittests.GetCopy().cros_ssh_identity) |
157 | 157 |
158 # Should return 2 separate ports even though the first one isn't technically | 158 # Should return 2 separate ports even though the first one isn't technically |
159 # being used yet. | 159 # being used yet. |
160 remote_port_1 = cri.GetRemotePort() | 160 remote_port_1 = cri.GetRemotePort() |
161 remote_port_2 = cri.GetRemotePort() | 161 remote_port_2 = cri.GetRemotePort() |
162 | 162 |
163 self.assertTrue(remote_port_1 != remote_port_2) | 163 self.assertTrue(remote_port_1 != remote_port_2) |
OLD | NEW |