simplestyle.test.py revision 310a864a23e6d0baec9ffd50be6539da63564bc9
"""Test for single transformations"""
def test_namedcolor(self):
"Parse 'red'"
def test_hexcolor4digit(self):
"Parse '#ff0102'"
def test_hexcolor3digit(self):
"Parse '#fff'"
def test_rgbcolorint(self):
"Parse 'rgb(255,255,255)'"
def test_rgbcolorpercent(self):
"Parse 'rgb(100%,100%,100%)'"
def test_rgbcolorpercent2(self):
"Parse 'rgb(100%,100%,100%)'"
"Parse 'rgb(66.667%,0%,6.667%)'"
def test_currentColor(self):
"Parse 'currentColor'"
def test_spaceinstyle(self):
"Parse 'stop-color: rgb(0,0,0)'"
#def test_unknowncolor(self):
# "Parse 'unknown'"
# col = parseColor('unknown')
# self.failUnlessEqual((0,0,0),col)
#
if __name__ == '__main__':