blob: c44522cfb8e2f3f6b7f5c66d4375a4379a7b942f [file] [log] [blame]
markdrdd1893d2018-02-05 17:13:47 -08001#!/usr/bin/env python3
tturney390ec862016-11-23 15:20:47 -08002#
3# Copyright 2016 - The Android Open Source Project
4#
5# Licensed under the Apache License, Version 2.0 (the "License");
6# you may not use this file except in compliance with the License.
7# You may obtain a copy of the License at
8#
9# http://www.apache.org/licenses/LICENSE-2.0
10#
11# Unless required by applicable law or agreed to in writing, software
12# distributed under the License is distributed on an "AS IS" BASIS,
13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14# See the License for the specific language governing permissions and
15# limitations under the License.
16
17import unittest
18
tturney390ec862016-11-23 15:20:47 -080019
20class ActsImportTestUtilsTest(unittest.TestCase):
21 """This test class has unit tests for the implementation of everything
22 under acts.test_utils.*
23 """
24
25 def test_import_successful(self):
26 """ Test to return true if all imports were successful.
27
28 This test will fail if any import was unsuccessful.
29 """
Mark De Ruyterf16783f2018-12-10 15:44:12 -080030 try:
31 from acts import utils
32
33 from acts.test_utils.bt import BleEnum
34 from acts.test_utils.bt import BluetoothBaseTest
35 from acts.test_utils.bt import BluetoothCarHfpBaseTest
36 from acts.test_utils.bt import BtEnum
37 from acts.test_utils.bt import GattConnectedBaseTest
38 from acts.test_utils.bt import GattEnum
39 from acts.test_utils.bt import bt_contacts_utils
40 from acts.test_utils.bt import bt_gatt_utils
41 from acts.test_utils.bt import bt_test_utils
42 from acts.test_utils.bt import native_bt_test_utils
43
44 from acts.test_utils.car import car_bt_utils
45 from acts.test_utils.car import car_media_utils
46 from acts.test_utils.car import car_telecom_utils
47 from acts.test_utils.car import tel_telecom_utils
48
49 from acts.test_utils.net import connectivity_const
50 from acts.test_utils.net import connectivity_const
51
52 from acts.test_utils.tel import TelephonyBaseTest
53 from acts.test_utils.tel import tel_atten_utils
54 from acts.test_utils.tel import tel_data_utils
55 from acts.test_utils.tel import tel_defines
56 from acts.test_utils.tel import tel_lookup_tables
57 from acts.test_utils.tel import tel_subscription_utils
58 from acts.test_utils.tel import tel_test_utils
59 from acts.test_utils.tel import tel_video_utils
60 from acts.test_utils.tel import tel_voice_utils
61
62 from acts.test_utils.wifi import wifi_constants
63 from acts.test_utils.wifi import wifi_test_utils
64
65 except Exception:
66 self.fail('Unable to import all supported test_utils')
tturney390ec862016-11-23 15:20:47 -080067
68
Mark De Ruyterf16783f2018-12-10 15:44:12 -080069if __name__ == '__main__':
tturney390ec862016-11-23 15:20:47 -080070 unittest.main()