<s> "<STR_LIT>" <EOL> __version__ = "<STR_LIT>" <EOL> import unittest <EOL> import os <EOL> import mplStyle . types . convert as cvt <EOL> from PyQt4 import QtGui <EOL> class TesttoMplColor ( unittest . TestCase ) : <EOL> """<STR_LIT>""" <EOL> def setUp ( self ) : <EOL> """<STR_LIT>""" <EOL> def tearDown ( self ) : <EOL> """<STR_LIT>""" <EOL> pass <EOL> def testToMplColor ( self ) : <EOL> """<STR_LIT>""" <EOL> converter = cvt . toMplColor <EOL> t = converter ( '<STR_LIT>' ) <EOL> self . assertEqual ( '<STR_LIT>' , t , "<STR_LIT>" ) <EOL> t = converter ( QtGui . QColor ( <NUM_LIT:0> , <NUM_LIT:255> , <NUM_LIT:0> ) ) <EOL> self . assertEqual ( '<STR_LIT>' , t , "<STR_LIT>" ) <EOL> t = converter ( '<STR_LIT:None>' ) <EOL> self . assertEqual ( '<STR_LIT:none>' , t , "<STR_LIT>" ) <EOL> t = converter ( ( <NUM_LIT:1.0> , <NUM_LIT:0.0> , <NUM_LIT:0.0> , <NUM_LIT:1.0> ) , ) <EOL> self . assertEqual ( '<STR_LIT>' , t , "<STR_LIT>" ) <EOL> t = converter ( [ <NUM_LIT:0> , <NUM_LIT:255> , <NUM_LIT:0> , <NUM_LIT:1> ] , ) <EOL> self . assertEqual ( '<STR_LIT>' , t , "<STR_LIT>" ) <EOL> t = converter ( '<STR_LIT:r>' ) <EOL> self . assertEqual ( '<STR_LIT>' , t , "<STR_LIT>" ) <EOL> t = converter ( '<STR_LIT:g>' ) <EOL> self . assertEqual ( '<STR_LIT>' , t , "<STR_LIT>" ) <EOL> t = converter ( '<STR_LIT:b>' ) <EOL> self . assertEqual ( '<STR_LIT>' , t , "<STR_LIT>" ) <EOL> t = converter ( '<STR_LIT:k>' ) <EOL> self . assertEqual ( '<STR_LIT>' , t , "<STR_LIT>" ) <EOL> t = converter ( '<STR_LIT:w>' ) <EOL> self . assertEqual ( '<STR_LIT>' , t , "<STR_LIT>" ) <EOL> self . assertRaises ( Exception , converter , None , name = '<STR_LIT:value>' , <EOL> msg = "<STR_LIT>" ) <EOL> self . assertRaises ( Exception , converter , "<STR_LIT>" , name = '<STR_LIT:value>' , <EOL> msg = "<STR_LIT>" ) <EOL> t = converter ( None , allowNone = True ) <EOL> self . assertEqual ( None , t , "<STR_LIT>" ) </s>
