1# Copyright (c) 2013 The Chromium OS Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5import unittest 6 7import common 8from autotest_lib.client.cros.cellular import scpi 9from autotest_lib.client.cros.cellular import cellular_logging 10from autotest_lib.client.cros.cellular import base_station_8960 11from autotest_lib.client.cros.cellular import prologix_scpi_driver 12from autotest_lib.client.cros.cellular import labconfig 13 14log = cellular_logging.SetupCellularLogging('base_station_8960_test') 15 16config = labconfig.Configuration(['--cell', 'mtv', '--technology', 'CDMA']) 17 18class test_8960(unittest.TestCase): 19 """ 20 Test the 8960 class. 21 """ 22 def test_make_one(self): 23 x = config.cell['basestations'][0] 24 adapter = x['gpib_adapter'] 25 scpi_device = scpi.Scpi( 26 prologix_scpi_driver.PrologixScpiDriver( 27 hostname=adapter['address'], 28 port=adapter['ip_port'], 29 gpib_address=adapter['gpib_address'], 30 read_timeout_seconds=5), 31 opc_on_stanza=True) 32 call_box = base_station_8960.BaseStation8960(scpi_device, 33 no_initialization=False) 34 35if __name__ == '__main__': 36 unittest.main() 37