def runTest(self): 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) self.assertIsNotNone(self.output.output_id) delete_output(self.output.output_id) with self.assertRaises(BitcodinNotFoundError): get_output(self.output.output_id)
def runTest(self): 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) self.assertIsNotNone(self.output.output_id) delete_output(self.output.output_id) with self.assertRaises(BitcodinNotFoundError): get_output(self.output.output_id)
def runTest(self): output = get_output(self.output.output_id) self.assertEquals(self.output.name, output.name) self.assertEquals(self.output.bucket, output.bucket) self.assertEquals(self.output.prefix, output.prefix) self.assertEquals(self.output.region, output.region) self.assertEquals(self.output.make_public, output.make_public)
def setUp(self): super(GetGCSOutputTestCase, self).setUp() output = GCSOutput(name='Python Test Output', access_key=gcs_output_config.get('accessKey'), secret_key=gcs_output_config.get('secretKey'), bucket=gcs_output_config.get('bucket'), prefix=gcs_output_config.get('prefix'), make_public=False) self.output = create_output(output) self.output = get_output(self.output.output_id)
def setUp(self): super(GetGCSOutputTestCase, self).setUp() output = GCSOutput( name='Python Test Output', access_key=gcs_output_config.get('accessKey'), secret_key=gcs_output_config.get('secretKey'), bucket=gcs_output_config.get('bucket'), prefix=gcs_output_config.get('prefix'), make_public=False ) self.output = create_output(output) self.output = get_output(self.output.output_id)
def runTest(self): output = get_output(self.output.output_id) self.assertEquals(self.output.name, output.name) self.assertEquals(self.output.host, output.host.split('/')[0]) self.assertEquals(self.output.passive, output.passive)
def runTest(self): output = get_output(self.output.output_id) self.assertEquals(self.output.name, output.name) self.assertEquals(self.output.bucket, output.bucket) self.assertEquals(self.output.prefix, output.prefix)
def runTest(self): with self.assertRaises(BitcodinNotFoundError): encoding_profile = get_output(0)
def test_get_output(self): outputs = bitcodin.list_outputs() self.assertGreater(len(outputs), 0) single_output = bitcodin.get_output(outputs[0].output_id) self.assertEqual(single_output.output_id, outputs[0].output_id)