@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', 'nfo\xc3\xb6\nb\xc3\xa4r', 'nfo\xc3\xb6\\nb\xc3\xa4r', 'fo\xc3\xb6\n\\nb\xc3\xa4r'])
def test_multistringwidget_decompress_strings(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' , 'nfo\xc3\xb6\nb\xc3\xa4r' , 'nfo\xc3\xb6\\nb\xc3\xa4r' , 'fo\xc3\xb6\n\\nb\xc3\xa4r' ] ) def test_multistringwidget_decompress_strings ( value ) : widget = MultiStringWidget ( ) assert ( widget . decompress ( value ) == [ value ] )
tests units multistringwidget decompresses string values .