Ubuntu Pastebin

Paste from michal at Thu, 16 Apr 2015 14:10:48 +0000

Download as text
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
=== modified file 'tests/autopilot/unity8/shell/tests/test_rotation.py'
--- tests/autopilot/unity8/shell/tests/test_rotation.py	2015-04-16 12:11:17 +0000
+++ tests/autopilot/unity8/shell/tests/test_rotation.py	2015-04-16 14:09:28 +0000
@@ -48,10 +48,8 @@
         self._data_dirs_mock_enabled = False
 
     def _assert_change_of_orientation_and_angle(self):
-        tmp_o = self.shell_proxy.orientation
-        tmp_a = self.shell_proxy.orientationAngle
-        self.assertThat(self.orientation, Equals(tmp_o))
-        self.assertThat(self.angle, Equals(tmp_a))
+        self.assertThat(self.shell_proxy.orientation, Eventually(Equals(self.orientation)))
+        self.assertThat(self.shell_proxy.orientationAngle, Eventually(Equals(self.angle)))
 
     def test_fake_sensor(self):
         unity_with_sensors = fixture_setup.LaunchUnityWithFakeSensors()
Download as text