markdr | dd1893d | 2018-02-05 17:13:47 -0800 | [diff] [blame] | 1 | #!/usr/bin/env python3 |
tturney | 390ec86 | 2016-11-23 15:20:47 -0800 | [diff] [blame] | 2 | # |
| 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 | |
| 17 | import unittest |
| 18 | |
tturney | 390ec86 | 2016-11-23 15:20:47 -0800 | [diff] [blame] | 19 | |
| 20 | class 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 Ruyter | f16783f | 2018-12-10 15:44:12 -0800 | [diff] [blame] | 30 | 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') |
tturney | 390ec86 | 2016-11-23 15:20:47 -0800 | [diff] [blame] | 67 | |
| 68 | |
Mark De Ruyter | f16783f | 2018-12-10 15:44:12 -0800 | [diff] [blame] | 69 | if __name__ == '__main__': |
tturney | 390ec86 | 2016-11-23 15:20:47 -0800 | [diff] [blame] | 70 | unittest.main() |