def test_custom_value2(): testing_df = df.copy() with pytest.raises(Exception): clean.fillWithCustomValue(testing_df, 6, 'testValue')
def test_custom_value1(): testing_df = df.copy() result_df = df.copy() clean.fillWithCustomValue(testing_df, 1, 'testValue') result_df['col2'].fillna(value='testValue', inplace=True) assert (((testing_df.fillna(0) == result_df.fillna(0)).all()).all()) == True