'Receiving calls ``flocker-volume`` remotely with ``receive`` command.'

def test_receive_destination_run(self):

    node = FakeNode()
    remote = RemoteVolumeManager(node, FilePath('/path/to/json'))
    with remote.receive(self.volume):
        pass
    self.assertEqual(node.remote_command, ['flocker-volume', '--config', '/path/to/json', 'receive', self.volume.node_id.encode('ascii'), 'myns.myvol'])
