273 lines
15 KiB
HTML
273 lines
15 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module dialogKit.test</title>
|
|
</head><body bgcolor="#f0f0f8">
|
|
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading">
|
|
<tr bgcolor="#7799ee">
|
|
<td valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="dialogKit.html"><font color="#ffffff">dialogKit</font></a>.test</strong></big></big></font></td
|
|
><td align=right valign=bottom
|
|
><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/code/projects/robofab/Lib/dialogKit/test.py">/code/projects/robofab/Lib/dialogKit/test.py</a></font></td></tr></table>
|
|
<p><tt>Testing suite for dialogKit.<br>
|
|
<br>
|
|
This should be called with<br>
|
|
<br>
|
|
from dialogKit.test import testAll<br>
|
|
<a href="#-testAll">testAll</a>()<br>
|
|
<br>
|
|
This will present a series of windows<br>
|
|
that each have a "Run Tests" button<br>
|
|
at the top. That button must be pressed<br>
|
|
for the tests to be performed.</tt></p>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#aa55cc">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td>
|
|
<td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="vanilla.html">vanilla</a><br>
|
|
</td><td width="25%" valign=top></td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ee77aa">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl>
|
|
<dt><font face="helvetica, arial"><a href="__builtin__.html#object">__builtin__.object</a>
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="dialogKit.test.html#TestCase">TestCase</a>
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="dialogKit.test.html#ButtonTest">ButtonTest</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="dialogKit.test.html#CheckBoxTest">CheckBoxTest</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="dialogKit.test.html#EditTextTest">EditTextTest</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="dialogKit.test.html#ListTest">ListTest</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="dialogKit.test.html#PopUpButtonTest">PopUpButtonTest</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="dialogKit.test.html#TextBoxTest">TextBoxTest</a>
|
|
</font></dt></dl>
|
|
</dd>
|
|
</dl>
|
|
</dd>
|
|
</dl>
|
|
<p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="ButtonTest">class <strong>ButtonTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="dialogKit.test.html#ButtonTest">ButtonTest</a></dd>
|
|
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="ButtonTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ButtonTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><a name="ButtonTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="ButtonTest-finish"><strong>finish</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x4df6b0><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'TestCase' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="CheckBoxTest">class <strong>CheckBoxTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="dialogKit.test.html#CheckBoxTest">CheckBoxTest</a></dd>
|
|
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="CheckBoxTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="CheckBoxTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><a name="CheckBoxTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="CheckBoxTest-finish"><strong>finish</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x4df890><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'TestCase' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="EditTextTest">class <strong>EditTextTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="dialogKit.test.html#EditTextTest">EditTextTest</a></dd>
|
|
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="EditTextTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="EditTextTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><a name="EditTextTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="EditTextTest-finish"><strong>finish</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x4df890><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'TestCase' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="ListTest">class <strong>ListTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="dialogKit.test.html#ListTest">ListTest</a></dd>
|
|
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="ListTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ListTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><a name="ListTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="ListTest-finish"><strong>finish</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x4df730><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'TestCase' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="PopUpButtonTest">class <strong>PopUpButtonTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="dialogKit.test.html#PopUpButtonTest">PopUpButtonTest</a></dd>
|
|
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="PopUpButtonTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="PopUpButtonTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><a name="PopUpButtonTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="PopUpButtonTest-finish"><strong>finish</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x4df6b0><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'TestCase' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="TestCase">class <strong>TestCase</strong></a>(<a href="__builtin__.html#object">__builtin__.object</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%">Methods defined here:<br>
|
|
<dl><dt><a name="TestCase-__init__"><strong>__init__</strong></a>(self, posSize, title<font color="#909090">=''</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="TestCase-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="TestCase-finish"><strong>finish</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes defined here:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x4df730><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'TestCase' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
</td></tr></table> <p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#ffc8d8">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#000000" face="helvetica, arial"><a name="TextBoxTest">class <strong>TextBoxTest</strong></a>(<a href="dialogKit.test.html#TestCase">TestCase</a>)</font></td></tr>
|
|
|
|
<tr><td bgcolor="#ffc8d8"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt>Method resolution order:</dt>
|
|
<dd><a href="dialogKit.test.html#TextBoxTest">TextBoxTest</a></dd>
|
|
<dd><a href="dialogKit.test.html#TestCase">TestCase</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="TextBoxTest-__init__"><strong>__init__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="TextBoxTest-runTests"><strong>runTests</strong></a>(self, sender)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><a name="TextBoxTest-assertEqual"><strong>assertEqual</strong></a>(self, value1, value2, assertionID<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="TextBoxTest-finish"><strong>finish</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="dialogKit.test.html#TestCase">TestCase</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x4df870><dd><tt>dictionary for instance variables (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>__weakref__</strong> = <attribute '__weakref__' of 'TestCase' objects><dd><tt>list of weak references to the <a href="__builtin__.html#object">object</a> (if defined)</tt></dl>
|
|
|
|
</td></tr></table></td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#eeaa77">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td>
|
|
<td width="100%"><dl><dt><a name="-testAll"><strong>testAll</strong></a>()</dt></dl>
|
|
</td></tr></table><p>
|
|
<table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section">
|
|
<tr bgcolor="#55aa55">
|
|
<td colspan=3 valign=bottom> <br>
|
|
<font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr>
|
|
|
|
<tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td>
|
|
<td width="100%"><strong>haveFL</strong> = False<br>
|
|
<strong>haveVanilla</strong> = True</td></tr></table>
|
|
</body></html> |