def METHOD_NAME(self, install):
    self.system.return_value = 'Linux'
    self.linux_distribution.return_value = ('Ubuntu', '', '')
    self.install._run_main(self.args, self.globals)
    self.assertIn('bucket', self.args)
    self.assertEqual(self.bucket, self.args.bucket)
    self.assertIn('key', self.args)
    self.assertEqual('latest/install', self.args.key)
    self.assertIn('installer', self.args)
    self.assertEqual('install', self.args.installer)
    self.makedirs.assert_called_with('/etc/codedeploy-agent/conf')
    self.copyfile.assset_called_with(
        'codedeploy.onpremises.yml',
        '/etc/codedeploy-agent/conf/codedeploy.onpremises.yml'
    )
    install.assert_called_with(self.args)