[FIX] test_osv_expression: fixed for new normalization API
authorOlivier Dony <odo@openerp.com>
Wed, 1 Jun 2011 06:23:03 +0000 (08:23 +0200)
committerOlivier Dony <odo@openerp.com>
Wed, 1 Jun 2011 06:23:03 +0000 (08:23 +0200)
bzr revid: odo@openerp.com-20110601062303-k9z0birutesfmkhp

openerp/addons/base/test/test_osv_expression.yml

index 61a686b..04177c8 100644 (file)
     Verify that normalize_domain() works.
 -
     !python {model: res.partner}: |
-        from osv.expression import expression
+        from osv import expression
         norm_domain = domain = ['&',(1,'=',1),('a','=','b')]
-        assert norm_domain == expression.normalize_domain(domain), "Normalized domains should be left untouched"
+        assert norm_domain == expression.normalize(domain), "Normalized domains should be left untouched"
         domain = [('x','in',['y','z']),('a.v','=','e'),'|','|',('a','=','b'),'!',('c','>','d'),('e','!=','f'),('g','=','h')]
         norm_domain = ['&','&','&'] + domain
-        assert norm_domain == expression.normalize_domain(domain), "Non-normalized domains should be properly normalized"
+        assert norm_domain == expression.normalize(domain), "Non-normalized domains should be properly normalized"