Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(965)

Side by Side Diff: third_party/gsutil/boto/tests/db/test_query.py

Issue 10199002: Upgrade gsutil to 3.4 (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Addressed comments Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright (c) 2010 Chris Moyer http://coredumped.org/ 1 # Copyright (c) 2010 Chris Moyer http://coredumped.org/
2 # 2 #
3 # Permission is hereby granted, free of charge, to any person obtaining a 3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the 4 # copy of this software and associated documentation files (the
5 # "Software"), to deal in the Software without restriction, including 5 # "Software"), to deal in the Software without restriction, including
6 # without limitation the rights to use, copy, modify, merge, publish, dis- 6 # without limitation the rights to use, copy, modify, merge, publish, dis-
7 # tribute, sublicense, and/or sell copies of the Software, and to permit 7 # tribute, sublicense, and/or sell copies of the Software, and to permit
8 # persons to whom the Software is furnished to do so, subject to the fol- 8 # persons to whom the Software is furnished to do so, subject to the fol-
9 # lowing conditions: 9 # lowing conditions:
10 # 10 #
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 assert(SimpleModel.find(strs="A").next().id == self.objs[0].id) 143 assert(SimpleModel.find(strs="A").next().id == self.objs[0].id)
144 assert(SimpleModel.find(strs="B").next().id == self.objs[0].id) 144 assert(SimpleModel.find(strs="B").next().id == self.objs[0].id)
145 assert(SimpleModel.find(strs="C").next().id == self.objs[0].id) 145 assert(SimpleModel.find(strs="C").next().id == self.objs[0].id)
146 146
147 def test_like(self): 147 def test_like(self):
148 """Test with a "like" expression""" 148 """Test with a "like" expression"""
149 query = SimpleModel.all() 149 query = SimpleModel.all()
150 query.filter("strs like", "%oo%") 150 query.filter("strs like", "%oo%")
151 print query.get_query() 151 print query.get_query()
152 assert(query.count() == 1) 152 assert(query.count() == 1)
OLDNEW
« no previous file with comments | « third_party/gsutil/boto/tests/db/test_password.py ('k') | third_party/gsutil/boto/tests/db/test_sequence.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698