def METHOD_NAME(self):
    for t in self.get_validate_hash_cases():
        if isinstance(t, str):
            t = (t, None)
        s, expected = t
        if isinstance(expected, type):  # Exception
            self.assert_signal_str_invalid(s, expected)
        else:
            self.assert_signal_str_valid(s, expected)