From 6bbc7dd157faf5b513852286ba656fa6723cd2d6 Mon Sep 17 00:00:00 2001 From: Ants Aasma Date: Tue, 16 Oct 2007 22:57:05 +0000 Subject: change the in_ API to accept a sequence or a selectable [ticket:750] --- test/profiling/zoomark.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/profiling') diff --git a/test/profiling/zoomark.py b/test/profiling/zoomark.py index 4d73e92b6..5c22fd9d8 100644 --- a/test/profiling/zoomark.py +++ b/test/profiling/zoomark.py @@ -176,13 +176,13 @@ class ZooMarkTest(testing.AssertMixin): # In operator (containedby) assert len(fulltable(Animal.select(Animal.c.Species.like('%pede%')))) == 2 - assert len(fulltable(Animal.select(Animal.c.Species.in_('Lion', 'Tiger', 'Bear')))) == 3 + assert len(fulltable(Animal.select(Animal.c.Species.in_(['Lion', 'Tiger', 'Bear'])))) == 3 # Try In with cell references class thing(object): pass pet, pet2 = thing(), thing() pet.Name, pet2.Name = 'Slug', 'Ostrich' - assert len(fulltable(Animal.select(Animal.c.Species.in_(pet.Name, pet2.Name)))) == 2 + assert len(fulltable(Animal.select(Animal.c.Species.in_([pet.Name, pet2.Name])))) == 2 # logic and other functions assert len(fulltable(Animal.select(Animal.c.Species.like('Slug')))) == 1 -- cgit v1.2.1