Cleanup formatting of Bluetooth test code.
Change-Id: I84268c3ef324bfe6a3fbe94f55c3d44c49949f06
diff --git a/acts/tests/google/bt/SppTest.py b/acts/tests/google/bt/SppTest.py
index 01d7ecd..efb3c35 100644
--- a/acts/tests/google/bt/SppTest.py
+++ b/acts/tests/google/bt/SppTest.py
@@ -13,7 +13,6 @@
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations under
# the License.
-
"""
Test script to execute Bluetooth basic functionality test cases.
This test was designed to be run in a shield box.
@@ -37,18 +36,17 @@
default_timeout = 10
scan_discovery_time = 5
thread_list = []
- message = ("Space: the final frontier. These are the voyages of "
- "the starship Enterprise. Its continuing mission: to explore "
- "strange new worlds, to seek out new life and new civilizations,"
- " to boldly go where no man has gone before.")
+ message = (
+ "Space: the final frontier. These are the voyages of "
+ "the starship Enterprise. Its continuing mission: to explore "
+ "strange new worlds, to seek out new life and new civilizations,"
+ " to boldly go where no man has gone before.")
def __init__(self, controllers):
BluetoothBaseTest.__init__(self, controllers)
self.server_ad = self.android_devices[0]
self.client_ad = self.android_devices[1]
- self.tests = (
- "test_spp_connection",
- )
+ self.tests = ("test_spp_connection", )
def _clear_bonded_devices(self):
for a in self.android_devices:
@@ -79,12 +77,13 @@
thread.join()
def orchestrate_rfcomm_connect(self, server_mac):
- accept_thread = threading.Thread(
- target=rfcomm_accept, args=(self.server_ad.droid,))
+ accept_thread = threading.Thread(target=rfcomm_accept,
+ args=(self.server_ad.droid, ))
self.thread_list.append(accept_thread)
accept_thread.start()
connect_thread = threading.Thread(
- target=rfcomm_connect, args=(self.client_ad.droid, server_mac))
+ target=rfcomm_connect,
+ args=(self.client_ad.droid, server_mac))
self.thread_list.append(connect_thread)
connect_thread.start()
@@ -112,7 +111,7 @@
Priority: 1
"""
server_mac = get_bt_mac_address(self.client_ad.droid,
- self.server_ad.droid)
+ self.server_ad.droid)
# temporary workaround. Need to find out why I can't connect after I do
# a device discovery from get_bt_mac_address
reset_bluetooth([self.server_ad])