#NEWLINE# @ override_settings ( WAGTAIL_USAGE_COUNT_ENABLED = True ) #NEWLINE# def test_used_image_document_get_usage( self ) : #NEWLINE# #INDENT# page = EventPage . objects . get ( id = 4 ) #NEWLINE# event_page_carousel_item = EventPageCarouselItem ( ) #NEWLINE# event_page_carousel_item . page = page #NEWLINE# event_page_carousel_item . image = page . image #NEWLINE# event_page_carousel_item . save ( ) #NEWLINE# self . assertTrue ( issubclass ( Page , type ( self . image . get_usage ( ) [ 0 ] ) ) )