summaryrefslogtreecommitdiff
path: root/tests
diff options
authorThomi Richards <thomi.richards@canonical.com>2012-04-18 13:37:31 +1200
committerThomi Richards <thomi.richards@canonical.com>2012-04-18 13:37:31 +1200
commit0543f913243ec01ea41cc452d2b5780047ca367f (patch)
tree6d9b4f59afe88340e88e315ef03b46163801897b /tests
parent271f9e0e276c86fc2248cf0913dfa1520da95c5e (diff)
Fixed code from review.
(bzr r2220.1.17)
Diffstat (limited to 'tests')
-rw-r--r--tests/autopilot/autopilot/matchers/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/autopilot/autopilot/matchers/__init__.py b/tests/autopilot/autopilot/matchers/__init__.py
index d879b87e1..7f946139d 100644
--- a/tests/autopilot/autopilot/matchers/__init__.py
+++ b/tests/autopilot/autopilot/matchers/__init__.py
@@ -23,7 +23,7 @@ class Eventually(Matcher):
def match(self, value):
wait_fun = getattr(value, 'wait_for', None)
- if not wait_fun:
+ if wait_fun is None:
raise TypeError("Eventually can only be used against autopilot attributes that have a wait_for funtion.")
value.wait_for(self.matcher)