Exemple #1
0
 def testForegroundColour(self):
     """SetForegroundColour, GetForegroundColour"""
     for test, actual in testColour.getColourEquivalentHexValues() + testColour.getColourEquivalentTuples():
         self.assert_(self.testControl.SetForegroundColour(test))
         # return True when background colour changed
         self.assertEquals(actual, self.testControl.GetForegroundColour())
         self.assert_(not self.testControl.SetForegroundColour(test))
Exemple #2
0
 def testBackgroundColor(self):
     """SetBackgroundColour, GetBackgroundColour"""
     for test, actual in testColour.getColourEquivalentHexValues() + \
                         testColour.getColourEquivalentTuples():
         self.assert_(self.testControl.SetBackgroundColour(test))
                     # return True when background colour changed
         self.assertEquals(actual, self.testControl.GetBackgroundColour())
         self.assert_(not self.testControl.SetBackgroundColour(test))
Exemple #3
0
 def testOwnForegroundColor(self):
     """SetOwnForegroundColour, GetForegroundColour"""
     for test, actual in testColour.getColourEquivalentHexValues() + \
                         testColour.getColourEquivalentTuples():
         self.testControl.SetOwnForegroundColour(test)
         self.assertEquals(actual, self.testControl.GetForegroundColour())