Beispiel #1
0
 def test_str_without_default(self):
     """
     __str__ should return empty string by default
     """
     invisible = InvisibleStringVar('name', 'desc')
     self.failUnless(invisible.__str__() == '')
Beispiel #2
0
 def test_repr_with_default(self):
     """
     __repr__ should return the default value string when it is set.
     """
     invisible = InvisibleStringVar('name', 'desc', default="default")
     self.failUnless(invisible.__repr__() == 'default')