on xenial help sign in
updated GenericScopeViewEmulatorTestCase..
50a33fdLeo Arias
tests/autopilot/unity8/shell/tests/test_emulators.py+3−3
@@ -134,10 +134,10 @@ class GenericScopeViewEmulatorTestCase(DashBaseTestCase):
134 # Set up the fake scopes before launching unity.
134 # Set up the fake scopes before launching unity.
135 self.useFixture(fixture_setup.FakeScopes())
135 self.useFixture(fixture_setup.FakeScopes())
136 super(GenericScopeViewEmulatorTestCase, self).setUp()
136 super(GenericScopeViewEmulatorTestCase, self).setUp()
137− self.home_scope = self.dash.open_scope('home')
137+ self.generic_scope = self.dash.open_scope('MockScope1')
138
138
139 def test_open_preview(self):
139 def test_open_preview(self):
140− preview = self.home_scope.open_preview('0', 'Title.0')
140+ preview = self.generic_scope.open_preview('0', 'Title.0')
141 self.assertIsInstance(preview, dash_emulators.DashPreview)
141 self.assertIsInstance(preview, dash_emulators.DashPreview)
142 self.assertTrue(preview.isCurrent)
142 self.assertTrue(preview.isCurrent)
143 self.assertFalse(preview.showProcessingAction)
143 self.assertFalse(preview.showProcessingAction)
@@ -146,7 +146,7 @@ class GenericScopeViewEmulatorTestCase(DashBaseTestCase):
146 expected_details = dict(
146 expected_details = dict(
147 title='Title', subtitle='Subtitle', description='Description')
147 title='Title', subtitle='Subtitle', description='Description')
148
148
149− preview = self.home_scope.open_preview('0', 'Title.0')
149+ preview = self.generic_scope.open_preview('0', 'Title.0')
150 details = preview.get_details()
150 details = preview.get_details()
151
151
152 self.assertEqual(expected_details, details)
152 self.assertEqual(expected_details, details)