def add_application_with_volume(node_state):
    manifestation = list(node_state.manifestations.values())[0]
    return node_state.set(
        "applications", {Application(
            name=u"myapplication",
            image=DockerImage.from_string(u"image"),
            volume=AttachedVolume(manifestation=manifestation,
                                  mountpoint=FilePath(b"/data")))})
Compare an object to the notification context.
dataset/ETHPy150Open ClusterHQ/flocker/flocker/node/agents/test/test_blockdevice.py/add_application_with_volume--crossover with--dataset/ETHPy150Open PureMVC/puremvc-python-standard-framework/src/puremvc/patterns/observer.py/Observer.compareNotifyContext