def METHOD_NAME(self):
    encrypted_file = path.join(self.tmpdir.name, 'test.beancount.asc')
    self.encrypt_as_file(INPUT, encrypted_file)
    with test_utils.environ('GNUPGHOME', self.ringdir):
        plaintext = encryption.read_encrypted_file(encrypted_file)
        self.assertEqual(INPUT, plaintext)