[tracker/tracker-0.10] tests/functional-tests: Use "true" and "false" for ASK
- From: Martyn James Russell <mr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker/tracker-0.10] tests/functional-tests: Use "true" and "false" for ASK
- Date: Thu, 14 Apr 2011 15:16:36 +0000 (UTC)
commit 0bd83788d0e7da9f227996431da9a3407c896ce0
Author: Philip Van Hoof <philip codeminded be>
Date: Mon Apr 11 21:41:34 2011 +0200
tests/functional-tests: Use "true" and "false" for ASK
tests/functional-tests/common/utils/helpers.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tests/functional-tests/common/utils/helpers.py b/tests/functional-tests/common/utils/helpers.py
index 5c82dfd..b2e7005 100644
--- a/tests/functional-tests/common/utils/helpers.py
+++ b/tests/functional-tests/common/utils/helpers.py
@@ -130,9 +130,9 @@ class StoreHelper:
assert ask_query.strip ().startswith ("ASK")
result = self.query (ask_query)
assert len (result) == 1
- if result[0][0] == "1":
+ if result[0][0] == "true":
return True
- elif result[0][0] == "0":
+ elif result[0][0] == "false":
return False
else:
raise Exception ("Something fishy is going on")
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]