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>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; A = Constant(1)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; B = Constant(2)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; C = Constant(3)
<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; def aMethod(self, a_value):<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &quot;&quot;&quot; something &quot;&quot;&quot;<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>