@@ -2059,17 +2059,17 @@ class TestMultipleChoiceField(FieldValues):
20592059 """
20602060valid_inputs = {
20612061 ():list (),
2062- (" aircon" ,): [" aircon" ],
2063- (" aircon" , " manual" ): [" aircon" , " manual" ],
2064- (" manual" , " aircon" ): [" manual" , " aircon" ],
2062+ (' aircon' ,): [' aircon' ],
2063+ (' aircon' , ' manual' ): [' aircon' , ' manual' ],
2064+ (' manual' , ' aircon' ): [' manual' , ' aircon' ],
20652065 }
20662066invalid_inputs = {
20672067'abc' : ['Expected a list of items but got type "str".' ],
20682068 ('aircon' ,'incorrect' ): ['"incorrect" is not a valid choice.' ]
20692069 }
20702070outputs = [
2071- ([" aircon" , " manual" , " incorrect" ], [" aircon" , " manual" , " incorrect" ]),
2072- ([" manual" , " aircon" , " incorrect" ], [" manual" , " aircon" , " incorrect" ]),
2071+ ([' aircon' , ' manual' , ' incorrect' ], [' aircon' , ' manual' , ' incorrect' ]),
2072+ ([' manual' , ' aircon' , ' incorrect' ], [' manual' , ' aircon' , ' incorrect' ]),
20732073 ]
20742074field = serializers .MultipleChoiceField (
20752075choices = [
@@ -2084,7 +2084,7 @@ def test_against_partial_and_full_updates(self):
20842084field .partial = False
20852085assert field .get_value (QueryDict ('' ))== []
20862086field .partial = True
2087- assert field .get_value (QueryDict ("" ))== rest_framework .fields .empty
2087+ assert field .get_value (QueryDict ('' ))== rest_framework .fields .empty
20882088
20892089def test_valid_inputs_is_json_serializable (self ):
20902090for input_value ,_ in get_items (self .valid_inputs ):
@@ -2095,7 +2095,7 @@ def test_valid_inputs_is_json_serializable(self):
20952095except TypeError as e :
20962096assert (
20972097False
2098- ),f" Validated output not JSON serializable:{ repr (validated )} ; Error:{ e } "
2098+ ),f' Validated output not JSON serializable:{ repr (validated )} ; Error:{ e } '
20992099
21002100def test_output_is_json_serializable (self ):
21012101for output_value ,_ in get_items (self .outputs ):
@@ -2105,8 +2105,8 @@ def test_output_is_json_serializable(self):
21052105json .dumps (representation )
21062106except TypeError as e :
21072107assert False , (
2108- f" to_representation output not JSON serializable:"
2109- f" { repr (representation )} ; Error:{ e } "
2108+ f' to_representation output not JSON serializable:'
2109+ f' { repr (representation )} ; Error:{ e } '
21102110 )
21112111
21122112