#NEWLINE# def test_delete_queryset_single_item( self ) : #NEWLINE# #INDENT# '\n        Test the `delete_queryset` action against a single item.\n        ' #NEWLINE# my_admin = User . objects . create_superuser ( 'myuser' , 'myemail@example.com' , '1234' ) #NEWLINE# self . request . user = my_admin #NEWLINE# qs = Hit . objects . filter ( ip = '127.0.0.5' ) #NEWLINE# self . admin . delete_queryset ( my_admin . request , qs ) #NEWLINE# hit_count = HitCount . objects . get ( pk = 1 ) #NEWLINE# self . assertEqual ( len ( Hit . objects . all ( ) ) , 9 ) #NEWLINE# self . assertEqual ( hit_count . hits , 9 )