~canonical-platform-qa/ubuntu-system-tests/pull_to_refresh_video_scope

« back to all changes in this revision

Viewing changes to ubuntu_system_tests/helpers/network/utils.py

  • Committer: Tarmac
  • Author(s): Allan LeSage, Santiago Baldassin
  • Date: 2016-09-05 18:39:11 UTC
  • mfrom: (446.2.6 indicators-refactoring-fixes)
  • Revision ID: tarmac-20160905183911-8w22riv8gbj3oo11
Fix indicators tests  broken by refactoring.

Approved by Richard Huddie, platform-qa-bot.

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
    ofono,
27
27
    wait_until
28
28
)
29
 
from ubuntu_system_tests.helpers.indicators import (
30
 
    network as network_indicator,
31
 
)
32
29
 
33
30
TEST_HOST = 'http://people.canonical.com/~platform-qa/page1.html'
34
31
 
104
101
    """Wait for internet availability for the specified time, else
105
102
    fail the test."""
106
103
    return wait_until(check_connection, timeout=timeout, period=1)
107
 
 
108
 
 
109
 
def turn_on_wifi_ensure_connectivity(test_case, timeout):
110
 
    """Enable wifi and wait for internet to connect successfully."""
111
 
    network_indicator.turn_on_wifi()
112
 
    test_case.assertTrue(ensure_internet_connectivity(timeout=timeout))