@@ -1,6 +1,6 @@
11# -*- Mode: Python; coding: utf-8; indent-tabs-mode: nil; tab-width: 4 -*-
22#
3−# Unity - Indicatosr Autopilot Test Suite
3+# Unity - Indicators Autopilot Test Suite
44# Copyright (C) 2013 Canonical
55#
66# This program is free software: you can redistribute it and/or modify
@@ -19,18 +19,19 @@
1919
2020from __future__ import absolute_import
2121
22+from unity8.shell.emulators.main_window import IndicatorType
2223from unity8.shell.tests import UnityTestCase
23−from unity8.shell.emulators.main_window import Indicators
24+
2425
2526class IndicatorTestCase(UnityTestCase):
2627
2728 scenarios = [
28− ('Network', dict(indicator_name=Indicators.network)),
29− ('Location', dict(indicator_name=Indicators.location)),
30− ('Messaging', dict(indicator_name=Indicators.messaging)),
31− ('Power', dict(indicator_name=Indicators.power)),
32− ('Sound', dict(indicator_name=Indicators.sound)),
33− ('Datetime', dict(indicator_name=Indicators.datetime)),
29+ ('Network', dict(indicator_name=IndicatorType.network)),
30+ ('Location', dict(indicator_name=IndicatorType.location)),
31+ ('Messaging', dict(indicator_name=IndicatorType.messaging)),
32+ ('Power', dict(indicator_name=IndicatorType.power)),
33+ ('Sound', dict(indicator_name=IndicatorType.sound)),
34+ ('Datetime', dict(indicator_name=IndicatorType.datetime)),
3435 ]
3536
3637 def test_indicator_exists(self):
@@ -38,6 +39,5 @@ class IndicatorTestCase(UnityTestCase):
3839
3940 self.launch_unity()
4041 self.main_window.get_greeter().swipe()
41− window = self.main_window.get_qml_view()
4242 indicator = self.main_window.get_indicator(self.indicator_name)
4343 self.assertIsNotNone(indicator)