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))
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))
def testOwnForegroundColor(self): """SetOwnForegroundColour, GetForegroundColour""" for test, actual in testColour.getColourEquivalentHexValues() + \ testColour.getColourEquivalentTuples(): self.testControl.SetOwnForegroundColour(test) self.assertEquals(actual, self.testControl.GetForegroundColour())