diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-08 16:02:00 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-04-08 16:02:00 +0000 |
commit | fb6e2972318a5d63365e66c35c000a6d2e096501 (patch) | |
tree | 35fa0fbaeaaddd9cc2a126a05eee3527b51e83a8 /deprecated/automation/common/machine_test.py | |
parent | 2186a2d2b9783318bc8226b3eff1fd114f03a8c4 (diff) | |
parent | b75f321fc8978b92ce3db6886ccb966768f0c7a8 (diff) | |
download | toolchain-utils-android12-mainline-tzdata2-release.tar.gz |
Snap for 8426163 from b75f321fc8978b92ce3db6886ccb966768f0c7a8 to mainline-tzdata2-releaseandroid-mainline-12.0.0_r112aml_tz2_305400500aml_tz2_305400300aml_tz2_305400100aml_tz2_304500300aml_tz2_303900110aml_tz2_303900102aml_tz2_303800002aml_tz2_303800001aml_tz2_303200001android12-mainline-tzdata2-releaseaml_tz2_305400100
Change-Id: If223f5dd2285da8941d62bcf5daf8e53ec9908ad
Diffstat (limited to 'deprecated/automation/common/machine_test.py')
-rwxr-xr-x | deprecated/automation/common/machine_test.py | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/deprecated/automation/common/machine_test.py b/deprecated/automation/common/machine_test.py new file mode 100755 index 00000000..f66299f5 --- /dev/null +++ b/deprecated/automation/common/machine_test.py @@ -0,0 +1,26 @@ +#!/usr/bin/python2 +# +# Copyright 2010 Google Inc. All Rights Reserved. +"""Machine manager unittest. + +MachineManagerTest tests MachineManager. +""" + +__author__ = 'asharif@google.com (Ahmad Sharif)' + +import machine +import unittest + + +class MachineTest(unittest.TestCase): + + def setUp(self): + pass + + def testPrintMachine(self): + mach = machine.Machine('ahmad.mtv', 'core2duo', 4, 'linux', 'asharif') + self.assertTrue('ahmad.mtv' in str(mach)) + + +if __name__ == '__main__': + unittest.main() |