def METHOD_NAME(self):
    x = []
    def valid(text):
        x.append(text)
        return text
    entry = ValidatingEntry(valid)
    entry.set_text("foo")
    self.assertEqual(x, [u"foo"])
    self.assertTrue(isinstance(x[0], str))