def test_replace_bool_with_bool(self):
        df = DataFrame(np.random.rand(2, 2) > 0.5)
        result = df.replace(False, True)
        expected = DataFrame(np.ones((2, 2), dtype=bool))
        assert_frame_equal(result, expected)
dataset/ETHPy150Open pydata/pandas/pandas/tests/frame/test_replace.py/TestDataFrameReplace.test_replace_bool_with_bool/original