def METHOD_NAME(self):
    db_token = Token(self.serial1, tokentype="sshkey")
    db_token.save()
    token = SSHkeyTokenClass(db_token)
    # An invalid key, raises an exception
    self.assertRaises(TokenAdminError, token.update, {"sshkey": "InvalidKey"})
    self.assertEqual(token.rollout_state, ROLLOUTSTATE.BROKEN)
    # An invalid key, raises an exception
    self.assertRaises(TokenAdminError, token.update, {"sshkey": self.INVALID_SSH})
    self.assertEqual(token.rollout_state, ROLLOUTSTATE.BROKEN)
    # An invalid key, raises an exception
    self.assertRaises(TokenAdminError, token.update, {"sshkey": self.wrong_sshkey})
    self.assertEqual(token.rollout_state, ROLLOUTSTATE.BROKEN)
    # An unsupported keytype
    self.assertRaises(TokenAdminError, token.update, {"sshkey": self.unsupported_keytype})
    self.assertEqual(token.rollout_state, ROLLOUTSTATE.BROKEN)
    # Set valid key
    token.update({"sshkey": self.sshkey})
    self.assertTrue(token.token.serial == self.serial1, token)
    self.assertTrue(token.token.tokentype == "sshkey",
                    token.token.tokentype)
    self.assertTrue(token.type == "sshkey", token)
    class_prefix = token.get_class_prefix()
    self.assertTrue(class_prefix == "SSHK", class_prefix)
    self.assertTrue(token.get_class_type() == "sshkey", token)
    # ecdsa
    db_token = Token(self.serial2, tokentype="sshkey")
    db_token.save()
    token = SSHkeyTokenClass(db_token)
    token.update({"sshkey": self.sshkey_ecdsa})
    # ed25519
    db_token = Token(self.serial3, tokentype="sshkey")
    db_token.save()
    token = SSHkeyTokenClass(db_token)
    token.update({"sshkey": self.sshkey_ed25519})
    # ecdsa_sk
    db_token = Token(self.serial4, tokentype="sshkey")
    db_token.save()
    token = SSHkeyTokenClass(db_token)
    token.update({"sshkey": self.ecdsa_sk})