def METHOD_NAME(self):
    fd = open(self.file_for_upload.strpath, "rb")
    pubnub.send_file().\
        channel(CHANNEL).\
        file_name(self.file_for_upload.basename).\
        message({"test_message": "test"}).\
        should_store(True).\
        ttl(222).\
        file_object(fd).pn_async(self.callback)
    self.event.wait()
    assert not self.status.is_error()
    assert isinstance(self.response, PNSendFileResult)
    fd.close()
    self.event.clear()
    return self.response