def setUp(self):
        super(TransferJobToFTPTestCase, self).setUp()
        self.maxDiff = None

        inputUrl = 'http://eu-storage.bitcodin.com/inputs/Sintel.2010.720p.mkv'
        input = Input(inputUrl)
        self.input = create_input(input)
        audio_stream_config = AudioStreamConfig(default_stream_id=0, bitrate=192000)
        video_stream_config = VideoStreamConfig(default_stream_id=0, bitrate=512000,
            profile='Main', preset='standard', height=480, width=640)
        encoding_profile = EncodingProfile('API Test Profile', [video_stream_config], [audio_stream_config])
        self.encoding_profile = create_encoding_profile(encoding_profile)
        self.manifests = ['m3u8', 'mpd']
        job = Job(self.input.input_id, self.encoding_profile.encoding_profile_id, self.manifests)
        self.job = create_job(job)
        self.ftp_configuration = {
            'name': 'Python API Test FTP Output',
            'host': ftp_config.get('host', None),
            'username': ftp_config.get('username', None),
            'password': ftp_config.get('password', None),
            'passive': True
        }
        output = FTPOutput(
            name=self.ftp_configuration.get('name'),
            host=self.ftp_configuration.get('host'),
            basic_auth_user=self.ftp_configuration.get('username'),
            basic_auth_password=self.ftp_configuration.get('password'),
            passive=self.ftp_configuration.get('passive')
        )
        self.output = create_output(output)
 def setUp(self):
     super(CreateFTPOutputTestCase, self).setUp()
     self.ftp_configuration = {
         'name': 'Python API Test FTP Output',
         'host': ftp_config.get('host', None),
         'username': ftp_config.get('username', None),
         'password': ftp_config.get('password', None),
         'passive': True
     }
 def setUp(self):
     super(GetFTPOutputTestCase, self).setUp()
     self.ftp_configuration = {
         'name': 'Python API Test FTP Output',
         'host': ftp_config.get('host', None),
         'username': ftp_config.get('username', None),
         'password': ftp_config.get('password', None),
         'passive': True
     }
     output = FTPOutput(
         name=self.ftp_configuration.get('name'),
         host=self.ftp_configuration.get('host'),
         basic_auth_user=self.ftp_configuration.get('username'),
         basic_auth_password=self.ftp_configuration.get('password'),
         passive=self.ftp_configuration.get('passive')
     )
     self.output = create_output(output)