Hi all.<br><br>I would like to be able to define an interface which specifies both methods and constants, something like this:<br><br>class IMyTest(Interface):<br> A = Constant(1)<br> B = Constant(2)<br> C = Constant(3)
<br><br> def aMethod(self, a_value):<br> """ something """<br><br>A, B and C could be any meaningful constant for this interface, like possible return values for the aMethod. Then I could possibly test any class using and object which implements this simply by testing it against the IMyTest and if the return values are
IMyTest.A, IMyTest.B, IMyTest.C.<br><br>Is this possible in some way? <br><br>Regards<br>Marco<br><br><br>-- <br>Marco Bizzarri<br><a href="http://notenotturne.blogspot.com/">http://notenotturne.blogspot.com/</a>