@pytest.mark.parametrize('nplurals, decompressed_value', [(1, [None]), (2, [None, None]), (3, [None, None, None]), (4, [None, None, None, None])])
def test_multistringwidget_decompress_none(nplurals, decompressed_value):
 widget = MultiStringWidget(nplurals=nplurals)
 assert (widget.decompress(None) == decompressed_value)

@ pytest . mark . parametrize ( 'nplurals, decompressed_value' , [ ( 1 , [ None ] ) , ( 2 , [ None , None ] ) , ( 3 , [ None , None , None ] ) , ( 4 , [ None , None , None , None ] ) ] ) def test_multistringwidget_decompress_none ( nplurals , decompressed_value ) : widget = MultiStringWidget ( nplurals = nplurals ) assert ( widget . decompress ( None ) == decompressed_value )
tests units multistringwidget decompresses none values .