def test_write_color(self, value, expected): w = StyleWriter(self.workbook) root = Element("root") w._write_color(root, value) assert root.find('color') is not None assert root.find('color').attrib == expected