]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
added assertion case for [ticket:764]
authorMike Bayer <mike_mp@zzzcomputing.com>
Sat, 8 Sep 2007 20:13:54 +0000 (20:13 +0000)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sat, 8 Sep 2007 20:13:54 +0000 (20:13 +0000)
test/sql/select.py

index f0af7e238a1299b030cafe829dd5c9af74902e1f..6a81310460d43ca7bd319656c1d43a7793acc8d0 100644 (file)
@@ -945,6 +945,9 @@ EXISTS (select yay from foo where boo = lar)",
         self.assert_compile(select([table1], table1.c.myid.in_('a')),
         "SELECT mytable.myid, mytable.name, mytable.description FROM mytable WHERE mytable.myid = :mytable_myid")
 
+        self.assert_compile(select([table1], ~table1.c.myid.in_('a')),
+        "SELECT mytable.myid, mytable.name, mytable.description FROM mytable WHERE mytable.myid != :mytable_myid")
+
         self.assert_compile(select([table1], table1.c.myid.in_('a', 'b')),
         "SELECT mytable.myid, mytable.name, mytable.description FROM mytable WHERE mytable.myid IN (:mytable_myid, :mytable_myid_1)")