Home | History | Annotate | Download | only in network_3GModemPresent
      1 # Copyright (c) 2010 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 from autotest_lib.client.bin import test
      6 from autotest_lib.client.common_lib import error
      7 
      8 
      9 class network_3GModemPresent(test.test):
     10     """
     11     Tests that a 3G modem is available.
     12 
     13     The test attempts to find a shill device corresponding to a cellular modem.
     14 
     15     """
     16     version = 1
     17 
     18     def run_once(self, test_env):
     19         with test_env:
     20             device = test_env.shill.find_cellular_device_object()
     21             if not device:
     22                 raise error.TestFail("Could not find cellular device")
     23