| OLD | NEW |
| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 """Test a not equal filter""" | 88 """Test a not equal filter""" |
| 89 t = SimpleListModel() | 89 t = SimpleListModel() |
| 90 t.strs = ["Fizzle"] | 90 t.strs = ["Fizzle"] |
| 91 t.put() | 91 t.put() |
| 92 self.objs.append(t) | 92 self.objs.append(t) |
| 93 time.sleep(3) | 93 time.sleep(3) |
| 94 print SimpleListModel.all().filter("strs !=", "Fizzle").get_query() | 94 print SimpleListModel.all().filter("strs !=", "Fizzle").get_query() |
| 95 for tt in SimpleListModel.all().filter("strs !=", "Fizzle"): | 95 for tt in SimpleListModel.all().filter("strs !=", "Fizzle"): |
| 96 print tt.strs | 96 print tt.strs |
| 97 assert("Fizzle" not in tt.strs) | 97 assert("Fizzle" not in tt.strs) |
| OLD | NEW |