Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: chrome/test/functional/chromeos_cellular_sanity.py

Issue 23359003: Eliminate unused PYAUTO tests and TestingAutomationProvider methods (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 #!/usr/bin/env python
2 # Copyright (c) 2011 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file.
5
6 import logging
7 import os
8 import sys
9 import time
10
11 import pyauto_functional
12 import pyauto # pyauto_functional must come before pyauto
13
14 class ChromeosCellularSanity(pyauto.PyUITest):
15 """Tests for ChromeOS network related functions."""
16
17 assert os.popen('modem status').read(), 'Device needs modem to run test.'
18
19 def testConnectCellularNetwork(self):
20 """Connect to the cellular network if present."""
21
22 self.ConnectToCellularNetwork()
23 self.assertTrue(self.NetworkScan().get('connected_cellular'),
24 'Failed to connect to cellular network.')
25 self.DisconnectFromCellularNetwork()
26 self.assertFalse(self.NetworkScan().get('connected_cellular'),
27 'Failed to disconnect from cellular network.')
28
29
30 if __name__ == '__main__':
31 pyauto_functional.Main()
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698