#NEWLINE# def test_color( editor ) : #NEWLINE# #INDENT# mode = get_mode ( editor ) #NEWLINE# assert ( mode . color . name ( ) == QtGui . QColor ( 'red' ) . name ( ) ) #NEWLINE# mode . color = QtGui . QColor ( '#00FF00' ) #NEWLINE# assert ( mode . color . name ( ) == QtGui . QColor ( '#00FF00' ) . name ( ) )