def test_color_style(self):
    svg = ElementTree.fromstring(((XML_HEADER + b'<svg width="10" height="10">') + b'<g sTYle="strOKe: #123; fILL: none;"></g></svg>'))
    with self.settings(SVG_COLORS={'white': '#fff', 'green': '#0f5'}):
        result = svg_util.color_icon(svg)
        self.assertEqual(2, len(result))
        self.assertTrue(('white' in result))
        self.assertTrue(('green' in result))
        self.assertTrue((b'sTYle="stroke: #fff; fILL: none;"' in ElementTree.tostring(result['white'])))
def test_color_style(self):
    svg = ElementTree.fromstring(((XML_HEADER + b'<svg width="10" height="10">') + b'<g sTYle="strOKe: #123; fILL: none;"></g></svg>'))
    with self.settings(SVG_COLORS={'white': '#fff', 'green': '#0f5'}):
        result = svg_util.color_icon(svg)
        self.assertEqual(2, len(result))
        self.assertTrue(('white' in result))
        self.assertTrue(('green' in result))
        self.assertTrue((b'sTYle="stroke: #fff; fILL: none;"' in ElementTree.tostring(result['white'])))