#NEWLINE# def test_fetch( self ) : #NEWLINE# #INDENT# dummy1 = DummyModel . objects . create ( name = 'Foo' ) #NEWLINE# dummy2 = DummyModel . objects . create ( name = 'Bar' ) #NEWLINE# dummy3 = DummyModel . objects . create ( name = 'Foobar' ) #NEWLINE# qset = list ( QuerySetFilterJob ( DummyModel ) . fetch ( name__startswith = 'Foo' ) ) #NEWLINE# assert ( dummy1 in qset ) #NEWLINE# assert ( dummy2 not in qset ) #NEWLINE# assert ( dummy3 in qset )