def test_set_style_attrs(component1):
    """Test that style attributes are set in the dict.

    Args:
        component1: A test component.
    """
    component = component1.create(color="white", text_align="center")
    assert str(component.style["color"]) == '"white"'
    assert str(component.style["textAlign"]) == '"center"'
Test that style attributes are set in the dict.

    Args:
        component1: A test component.
    
tests/units/components/test_component.py