Home | History | Annotate | Download | only in cellular
      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 
      5 import unittest
      6 
      7 import common
      8 from autotest_lib.client.cros.cellular import scpi
      9 from autotest_lib.client.cros.cellular import cellular_logging
     10 from autotest_lib.client.cros.cellular import base_station_8960
     11 from autotest_lib.client.cros.cellular import prologix_scpi_driver
     12 from autotest_lib.client.cros.cellular import labconfig
     13 
     14 log = cellular_logging.SetupCellularLogging('base_station_8960_test')
     15 
     16 config = labconfig.Configuration(['--cell', 'mtv', '--technology', 'CDMA'])
     17 
     18 class 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 
     35 if __name__ == '__main__':
     36     unittest.main()
     37