@@ -83,20 +83,26 @@ class NotificationsBase(UnityTestCase):
8383 """
8484
8585 if summary is not None:
86− self.assertThat(notification.summary, Equals(summary))
86+ self.assertThat(notification.summary, Eventually(Equals(summary)))
8787
8888 if body is not None:
89− self.assertThat(notification.body, Equals(body))
89+ self.assertThat(notification.body, Eventually(Equals(body)))
9090
9191 if icon:
92− self.assertThat(notification.iconSource, NotEquals(""))
92+ self.assertThat(notification.iconSource, Eventually(NotEquals("")))
9393 else:
94− self.assertThat(notification.iconSource, Equals(""))
94+ self.assertThat(notification.iconSource, Eventually(Equals("")))
9595
9696 if secondary_icon:
97− self.assertThat(notification.secondaryIconSource, NotEquals(""))
97+ self.assertThat(
98+ notification.secondaryIconSource,
99+ Eventually(NotEquals(""))
100+ )
98101 else:
99− self.assertThat(notification.secondaryIconSource, Equals(""))
102+ self.assertThat(
103+ notification.secondaryIconSource,
104+ Eventually(Equals(""))
105+ )
100106
101107 if opacity is not None:
102108 self.assertThat(notification.opacity, Eventually(Equals(opacity)))
@@ -552,7 +558,7 @@ class EphemeralNotificationsTests(NotificationsBase):
552558 )
553559 notification.show()
554560
555− get_notification = lambda: notify_list.select_single('Notification')
561+ get_notification = lambda: notify_list.select_single('Notification', summary=summary)
556562 self.assertThat(get_notification, Eventually(NotEquals(None)))
557563 self._assert_notification(
558564 get_notification(),
@@ -563,7 +569,6 @@ class EphemeralNotificationsTests(NotificationsBase):
563569 1.0
564570 )
565571
566− time.sleep(3)
567572 summary = 'Updated notification'
568573 body = 'Here the same bubble with new title- and body-text, even ' \
569574 'the icon can be changed on the update.'