~free.ekanayaka/storm/any-expr

« back to all changes in this revision

Viewing changes to tests/expr.py

  • Committer: Free Ekanayaka
  • Date: 2010-03-11 09:58:45 UTC
  • Revision ID: free.ekanayaka@canonical.com-20100311095845-3k02vwo4q5fl2ibe
Add Any expression

Show diffs side-by-side

added added

removed removed

Lines of Context:
1448
1448
        self.assertEquals(statement, "COALESCE(func1(), func2(), NULL)")
1449
1449
        self.assertEquals(state.parameters, [])
1450
1450
 
 
1451
    def test_any(self):
 
1452
        expr = Any(Func1())
 
1453
        state = State()
 
1454
        statement = compile(expr, state)
 
1455
        self.assertEquals(statement, "ANY(func1())")
 
1456
        self.assertEquals(state.parameters, [])
 
1457
 
1451
1458
    def test_not(self):
1452
1459
        expr = Not(Func1())
1453
1460
        state = State()