Remove the test for filter(Pokemon.name > u"Xatu")
authorPetr Viktorin <encukou@gmail.com>
Tue, 29 Mar 2011 18:01:57 +0000 (21:01 +0300)
committerEevee <git@veekun.com>
Fri, 1 Apr 2011 22:59:53 +0000 (15:59 -0700)
__gt__ and friends, you will be missed.

pokedex/tests/test_strings.py

index 0955ded..fe567c1 100644 (file)
@@ -16,16 +16,6 @@ class TestStrings(object):
                 tables.Pokemon.name == u"Marowak")
         assert q.one().identifier == 'marowak'
 
-    def test_gt(self):
-        # Assuming that the identifiers are just lowercase names
-        q1 = self.connection.query(tables.Pokemon).filter(
-                tables.Pokemon.name > u"Xatu").order_by(
-                tables.Pokemon.id)
-        q2 = self.connection.query(tables.Pokemon).filter(
-                tables.Pokemon.identifier > u"xatu").order_by(
-                tables.Pokemon.id)
-        assert q1.all() == q2.all()
-
     def test_languages(self):
         q = self.connection.query(tables.Pokemon).filter(
                 tables.Pokemon.name == u"Mightyena")