def METHOD_NAME(self):
    """Email parser fails correctly on random binary blob."""
    random_data = urandom(1024)
    random_blob = BytesIO(random_data)
    found_error = None
    try:
        broken_obj = EMailObject(pseudofile=random_data)
    except Exception as _e:
        found_error = _e
    if not isinstance(found_error, InvalidMISPObject):
        self.fail("Expected InvalidMISPObject when EmailObject receives completely unknown binary input data. But, did not get that exception.")
    try:
        broken_obj = EMailObject(pseudofile=random_blob)
    except Exception as _e:
        found_error = _e
    if not isinstance(found_error, PyMISPNotImplementedYet):
        self.fail("Expected PyMISPNotImplementedYet when EmailObject receives completely unknown binary input data in a pseudofile. But, did not get that exception.")