def METHOD_NAME(self):
    """
    Ensure that this function converts the value passed to bytes before
    attempting to validate the hmac challenge, avoiding a
    UnicodeEncodeError on Python 2 and a TypeError on Python 3.
    """
    self.assertTrue(
        salt.utils.hashutils.hmac_signature(
            self.str, self.hmac_secret, self.str_hmac_challenge
        )
    )
    self.assertTrue(
        salt.utils.hashutils.hmac_signature(
            self.bytes, self.hmac_secret, self.bytes_hmac_challenge
        )
    )