@pytest.mark.parametrize('value', [['foo\\bar'], ['fo\xc3\xb6\r\nb\xc3\xa4r'], ['fo\xc3\xb6\\r\\nb\xc3\xa4r'], ['fo\xc3\xb6\r\n\\r\\nb\xc3\xa4r', 'b\xc3\xa4r\r\n\\r\\nb\xc3\xa4z'], ['nfo\xc3\xb6\nb\xc3\xa4r'], ['nfo\xc3\xb6\\nb\xc3\xa4r'], ['fo\xc3\xb6\n\\nb\xc3\xa4r', 'b\xc3\xa4r\n\\nb\xc3\xa4z']])
def test_multistringwidget_decompress_list_of_values(value):
 widget = MultiStringWidget()
 assert (widget.decompress(value) == value)

@ pytest . mark . parametrize ( 'value' , [ [ 'foo\\bar' ] , [ 'fo\xc3\xb6\r\nb\xc3\xa4r' ] , [ 'fo\xc3\xb6\\r\\nb\xc3\xa4r' ] , [ 'fo\xc3\xb6\r\n\\r\\nb\xc3\xa4r' , 'b\xc3\xa4r\r\n\\r\\nb\xc3\xa4z' ] , [ 'nfo\xc3\xb6\nb\xc3\xa4r' ] , [ 'nfo\xc3\xb6\\nb\xc3\xa4r' ] , [ 'fo\xc3\xb6\n\\nb\xc3\xa4r' , 'b\xc3\xa4r\n\\nb\xc3\xa4z' ] ] ) def test_multistringwidget_decompress_list_of_values ( value ) : widget = MultiStringWidget ( ) assert ( widget . decompress ( value ) == value )
tests units multistringwidget decompresses a list of values .