'Testing whether the right destination of a VOD download is returned'

def test_get_vod_dest_dir(self):

    mock_download = MockObject()
    mock_download.get_content_dest = (lambda : 'abc')
    mock_download.get_selected_files = (lambda : ['def'])
    mock_def = MockObject()
    mock_def.is_multifile_torrent = (lambda : True)
    mock_download.get_def = (lambda : mock_def)
    self.assertEqual(self.video_server.get_vod_destination(mock_download), os.path.join('abc', 'def'))
