def METHOD_NAME(self):
    self.parsed_response = {
        'certificatePem': 'cert...',
        'keyPair': {
            'PublicKey': 'public',
            'PrivateKey': 'private'
        },
        'ResponseMetadata': {
            'HTTPStatusCode': 200,
            'RequestId': 'request-id'
        }
    }
    out_cert = self.files.full_path('cert.pem')
    out_pub = self.files.full_path('key_rsa.pub')
    out_priv = self.files.full_path('key_rsa')
    cmdline = 'iot create-keys-and-certificate'
    cmdline += ' --certificate-pem-outfile ' + out_cert
    cmdline += ' --public-key-outfile ' + out_pub
    cmdline += ' --private-key-outfile ' + out_priv
    self.run_cmd(cmdline, 0)
    self.assertTrue(os.path.exists(out_cert))
    self.assertTrue(os.path.exists(out_pub))
    self.assertTrue(os.path.exists(out_priv))
    with open(out_cert) as fp:
        self.assertEqual('cert...', fp.read())
    with open(out_pub) as fp:
        self.assertEqual('public', fp.read())
    with open(out_priv) as fp:
        self.assertEqual('private', fp.read())