[tracker] tests/functional-tests: Use "true" and "false" for ASK
- From: Philip Van Hoof <pvanhoof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker] tests/functional-tests: Use "true" and "false" for ASK
- Date: Mon, 11 Apr 2011 19:42:20 +0000 (UTC)
commit cd127cb68ed53a56e1f9a1d3017a1ef992062e35
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 2e8d381..dff8185 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]