Add unit test for importing test utils
Bug: 33111600
Test: Manual execution of script
Change-Id: Ifaacc53edd673ec46449b77e324453a5f69b3af2
diff --git a/PREUPLOAD.cfg b/PREUPLOAD.cfg
index ba5dbf4..80ac2a1 100644
--- a/PREUPLOAD.cfg
+++ b/PREUPLOAD.cfg
@@ -11,6 +11,7 @@
acts_unittest_suite = ./acts/framework/tests/acts_unittest_suite.py
acts_utils_test = ./acts/framework/tests/acts_utils_test.py
acts_host_utils_test = ./acts/framework/tests/acts_host_utils_test.py
+acts_import_test_utils_test = ./acts/framework/tests/acts_import_test_utils_test.py
[Builtin Hooks]
commit_msg_bug_field = true
diff --git a/acts/framework/acts/test_utils/net/__init__.py b/acts/framework/acts/test_utils/net/__init__.py
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/acts/framework/acts/test_utils/net/__init__.py
diff --git a/acts/framework/tests/acts_import_test_utils_test.py b/acts/framework/tests/acts_import_test_utils_test.py
new file mode 100755
index 0000000..4cfa93d
--- /dev/null
+++ b/acts/framework/tests/acts_import_test_utils_test.py
@@ -0,0 +1,68 @@
+#!/usr/bin/env python3.4
+#
+# Copyright 2016 - The Android Open Source Project
+#
+# Licensed under the Apache License, Version 2.0 (the "License");
+# you may not use this file except in compliance with the License.
+# You may obtain a copy of the License at
+#
+# http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+import unittest
+
+from acts import utils
+from acts.test_utils.bt import BleEnum
+from acts.test_utils.bt import BluetoothBaseTest
+from acts.test_utils.bt import BluetoothCarHfpBaseTest
+from acts.test_utils.bt import BtEnum
+from acts.test_utils.bt import GattConnectedBaseTest
+from acts.test_utils.bt import GattEnum
+from acts.test_utils.bt import bt_contacts_utils
+from acts.test_utils.bt import bt_gatt_utils
+from acts.test_utils.bt import bt_test_utils
+from acts.test_utils.bt import native_bt_test_utils
+
+from acts.test_utils.car import car_bt_utils
+from acts.test_utils.car import car_media_utils
+from acts.test_utils.car import car_telecom_utils
+from acts.test_utils.car import tel_telecom_utils
+
+from acts.test_utils.net import connectivity_const
+from acts.test_utils.net import connectivity_const
+
+from acts.test_utils.tel import TelephonyBaseTest
+from acts.test_utils.tel import tel_atten_utils
+from acts.test_utils.tel import tel_data_utils
+from acts.test_utils.tel import tel_defines
+from acts.test_utils.tel import tel_lookup_tables
+from acts.test_utils.tel import tel_subscription_utils
+from acts.test_utils.tel import tel_test_utils
+from acts.test_utils.tel import tel_video_utils
+from acts.test_utils.tel import tel_voice_utils
+
+from acts.test_utils.wifi import wifi_aware_const
+from acts.test_utils.wifi import wifi_constants
+from acts.test_utils.wifi import wifi_test_utils
+
+
+class ActsImportTestUtilsTest(unittest.TestCase):
+ """This test class has unit tests for the implementation of everything
+ under acts.test_utils.*
+ """
+
+ def test_import_successful(self):
+ """ Test to return true if all imports were successful.
+
+ This test will fail if any import was unsuccessful.
+ """
+ self.assertTrue(True)
+
+
+if __name__ == "__main__":
+ unittest.main()