def METHOD_NAME(self):
    self.login_as(self.user)
    search_type = 1
    query = "something"
    the_date = datetime(2019, 1, 1, 1, 1, 1)
    with freeze_time(the_date):
        response = self.get_response(self.organization.slug, type=search_type, query=query)
        assert response.status_code == 201
        assert RecentSearch.objects.filter(
            organization=self.organization,
            user_id=self.user.id,
            type=search_type,
            query=query,
            last_seen=the_date,
        ).exists()
    the_date = datetime(2019, 1, 1, 2, 2, 2)
    with freeze_time(the_date):
        response = self.get_response(self.organization.slug, type=search_type, query=query)
        assert response.status_code == 204, response.content
        assert RecentSearch.objects.filter(
            organization=self.organization,
            user_id=self.user.id,
            type=search_type,
            query=query,
            last_seen=the_date,
        ).exists()