def should_give_correct_info_string(): # given float_field = Float() # when info_str = float_field._info() # then assert ( info_str == "<Float\n spark type = FloatType\n nullable = True\n name = None <- [None, None]\n parent = None\n>" )
def should_give_correct_info_string(float_field: Float): assert ( float_field._info() == "<Float\n spark type = FloatType\n nullable = True\n name = None <- [None, None]\n parent = None\n>" )