Check that context manager has __enter__ method