def METHOD_NAME(self, illegal_type):
    bsc = BaseSystemCollection()
    with pytest.raises(TypeError) as excinfo:
        # None is the rod/system parameter
        bsc._check_type(illegal_type())
    assert "not a system" in str(excinfo.value)