~ubuntu-branches/debian/jessie/sqlalchemy/jessie

« back to all changes in this revision

Viewing changes to test/sql/test_operators.py

  • Committer: Package Import Robot
  • Author(s): Piotr Ożarowski
  • Date: 2013-10-28 22:29:40 UTC
  • mto: (1.6.9)
  • mto: This revision was merged to the branch mainline in revision 35.
  • Revision ID: package-import@ubuntu.com-20131028222940-t6h277tm5kaiepk4
Tags: upstream-0.8.3
Import upstream version 0.8.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
768
768
            "mytable.myid IN (NULL)"
769
769
        )
770
770
 
 
771
    @testing.emits_warning('.*empty sequence.*')
 
772
    def test_in_29(self):
 
773
        self.assert_compile(self.table1.c.myid.notin_([]),
 
774
        "mytable.myid = mytable.myid")
 
775
 
 
776
    @testing.emits_warning('.*empty sequence.*')
 
777
    def test_in_30(self):
 
778
        self.assert_compile(~self.table1.c.myid.in_([]),
 
779
        "mytable.myid = mytable.myid")
 
780
 
 
781
 
771
782
class MathOperatorTest(fixtures.TestBase, testing.AssertsCompiledSQL):
772
783
    __dialect__ = 'default'
773
784