def test_valid_css():
 styles = ['color', 'float']
 eq_('<p style="float: left;">foo</p>', clean('<p style="float: left; color: ">foo</p>', styles=styles))
 eq_('<p style="">foo</p>', clean('<p style="color: float: left;">foo</p>', styles=styles))

def test_valid_css ( ) : styles = [ 'color' , 'float' ] eq_ ( '<p style="float: left;">foo</p>' , clean ( '<p style="float: left; color: ">foo</p>' , styles = styles ) ) eq_ ( '<p style="">foo</p>' , clean ( '<p style="color: float: left;">foo</p>' , styles = styles ) )
the sanitizer should fix missing css values .