502 lines
42 KiB
HTML
502 lines
42 KiB
HTML
|
|
<!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
|
<html><head><title>Python: module robofab.test.test_objectsUFO</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="robofab.html"><font color="#ffffff">robofab</font></a>.<a href="robofab.test.html"><font color="#ffffff">test</font></a>.test_objectsUFO</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/robofab/test/test_objectsUFO.py">/code/projects/robofab/Lib/robofab/test/test_objectsUFO.py</a></font></td></tr></table>
|
|
<p><tt>This test suite for ufo glyph methods</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="os.html">os</a><br>
|
|
</td><td width="25%" valign=top><a href="shutil.html">shutil</a><br>
|
|
</td><td width="25%" valign=top><a href="tempfile.html">tempfile</a><br>
|
|
</td><td width="25%" valign=top><a href="unittest.html">unittest</a><br>
|
|
</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="unittest.html#TestCase">unittest.TestCase</a>(<a href="__builtin__.html#object">__builtin__.object</a>)
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="robofab.test.test_objectsUFO.html#ContourMethodsTestCase">ContourMethodsTestCase</a>
|
|
</font></dt><dd>
|
|
<dl>
|
|
<dt><font face="helvetica, arial"><a href="robofab.test.test_objectsUFO.html#GlyphsMethodsTestCase">GlyphsMethodsTestCase</a>
|
|
</font></dt><dt><font face="helvetica, arial"><a href="robofab.test.test_objectsUFO.html#SaveTestCase">SaveTestCase</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="ContourMethodsTestCase">class <strong>ContourMethodsTestCase</strong></a>(<a href="unittest.html#TestCase">unittest.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="robofab.test.test_objectsUFO.html#ContourMethodsTestCase">ContourMethodsTestCase</a></dd>
|
|
<dd><a href="unittest.html#TestCase">unittest.TestCase</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="ContourMethodsTestCase-setUp"><strong>setUp</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-testAppendSegment"><strong>testAppendSegment</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-testReverseContour"><strong>testReverseContour</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-testStartSegment"><strong>testStartSegment</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="unittest.html#TestCase">unittest.TestCase</a>:<br>
|
|
<dl><dt><a name="ContourMethodsTestCase-__call__"><strong>__call__</strong></a>(self, result<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-__init__"><strong>__init__</strong></a>(self, methodName<font color="#909090">='runTest'</font>)</dt><dd><tt>Create an instance of the class that will use the named test<br>
|
|
method when executed. Raises a ValueError if the instance does<br>
|
|
not have a method with the specified name.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-__str__"><strong>__str__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-assertAlmostEqual"><strong>assertAlmostEqual</strong></a> = failUnlessAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-assertAlmostEquals"><strong>assertAlmostEquals</strong></a> = failUnlessAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-assertEqual"><strong>assertEqual</strong></a> = failUnlessEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-assertEquals"><strong>assertEquals</strong></a> = failUnlessEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-assertNotAlmostEqual"><strong>assertNotAlmostEqual</strong></a> = failIfAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-assertNotAlmostEquals"><strong>assertNotAlmostEquals</strong></a> = failIfAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-assertNotEqual"><strong>assertNotEqual</strong></a> = failIfEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-assertNotEquals"><strong>assertNotEquals</strong></a> = failIfEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-assertRaises"><strong>assertRaises</strong></a> = failUnlessRaises(self, excClass, callableObj, *args, **kwargs)</dt><dd><tt>Fail unless an exception of class excClass is thrown<br>
|
|
by callableObj when invoked with arguments args and keyword<br>
|
|
arguments kwargs. If a different type of exception is<br>
|
|
thrown, it will not be caught, and the test case will be<br>
|
|
deemed to have suffered an error, exactly as for an<br>
|
|
unexpected exception.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-assert_"><strong>assert_</strong></a> = failUnless(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test unless the expression is true.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-countTestCases"><strong>countTestCases</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-debug"><strong>debug</strong></a>(self)</dt><dd><tt>Run the test without collecting errors in a TestResult</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-defaultTestResult"><strong>defaultTestResult</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-fail"><strong>fail</strong></a>(self, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail immediately, with the given message.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-failIf"><strong>failIf</strong></a>(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test if the expression is true.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-failIfAlmostEqual"><strong>failIfAlmostEqual</strong></a>(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-failIfEqual"><strong>failIfEqual</strong></a>(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-failUnless"><strong>failUnless</strong></a>(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test unless the expression is true.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-failUnlessAlmostEqual"><strong>failUnlessAlmostEqual</strong></a>(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-failUnlessEqual"><strong>failUnlessEqual</strong></a>(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-failUnlessRaises"><strong>failUnlessRaises</strong></a>(self, excClass, callableObj, *args, **kwargs)</dt><dd><tt>Fail unless an exception of class excClass is thrown<br>
|
|
by callableObj when invoked with arguments args and keyword<br>
|
|
arguments kwargs. If a different type of exception is<br>
|
|
thrown, it will not be caught, and the test case will be<br>
|
|
deemed to have suffered an error, exactly as for an<br>
|
|
unexpected exception.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-id"><strong>id</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-run"><strong>run</strong></a>(self, result<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-shortDescription"><strong>shortDescription</strong></a>(self)</dt><dd><tt>Returns a one-line description of the test, or None if no<br>
|
|
description has been provided.<br>
|
|
<br>
|
|
The default implementation of this method returns the first line of<br>
|
|
the specified test method's docstring.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="ContourMethodsTestCase-tearDown"><strong>tearDown</strong></a>(self)</dt><dd><tt>Hook method for deconstructing the test fixture after testing it.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="unittest.html#TestCase">unittest.TestCase</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x14b0730><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 object (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>failureException</strong> = <class exceptions.AssertionError at 0x20a50><dd><tt>Assertion failed.</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="GlyphsMethodsTestCase">class <strong>GlyphsMethodsTestCase</strong></a>(<a href="robofab.test.test_objectsUFO.html#ContourMethodsTestCase">ContourMethodsTestCase</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="robofab.test.test_objectsUFO.html#GlyphsMethodsTestCase">GlyphsMethodsTestCase</a></dd>
|
|
<dd><a href="robofab.test.test_objectsUFO.html#ContourMethodsTestCase">ContourMethodsTestCase</a></dd>
|
|
<dd><a href="unittest.html#TestCase">unittest.TestCase</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="GlyphsMethodsTestCase-testCopyGlyph"><strong>testCopyGlyph</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-testFabPenCompatibility"><strong>testFabPenCompatibility</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-testMoveGlyph"><strong>testMoveGlyph</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-testScaleGlyph"><strong>testScaleGlyph</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-testSegmentPenInterface"><strong>testSegmentPenInterface</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="robofab.test.test_objectsUFO.html#ContourMethodsTestCase">ContourMethodsTestCase</a>:<br>
|
|
<dl><dt><a name="GlyphsMethodsTestCase-setUp"><strong>setUp</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-testAppendSegment"><strong>testAppendSegment</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-testReverseContour"><strong>testReverseContour</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-testStartSegment"><strong>testStartSegment</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="unittest.html#TestCase">unittest.TestCase</a>:<br>
|
|
<dl><dt><a name="GlyphsMethodsTestCase-__call__"><strong>__call__</strong></a>(self, result<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-__init__"><strong>__init__</strong></a>(self, methodName<font color="#909090">='runTest'</font>)</dt><dd><tt>Create an instance of the class that will use the named test<br>
|
|
method when executed. Raises a ValueError if the instance does<br>
|
|
not have a method with the specified name.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-__str__"><strong>__str__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-assertAlmostEqual"><strong>assertAlmostEqual</strong></a> = failUnlessAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-assertAlmostEquals"><strong>assertAlmostEquals</strong></a> = failUnlessAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-assertEqual"><strong>assertEqual</strong></a> = failUnlessEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-assertEquals"><strong>assertEquals</strong></a> = failUnlessEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-assertNotAlmostEqual"><strong>assertNotAlmostEqual</strong></a> = failIfAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-assertNotAlmostEquals"><strong>assertNotAlmostEquals</strong></a> = failIfAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-assertNotEqual"><strong>assertNotEqual</strong></a> = failIfEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-assertNotEquals"><strong>assertNotEquals</strong></a> = failIfEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-assertRaises"><strong>assertRaises</strong></a> = failUnlessRaises(self, excClass, callableObj, *args, **kwargs)</dt><dd><tt>Fail unless an exception of class excClass is thrown<br>
|
|
by callableObj when invoked with arguments args and keyword<br>
|
|
arguments kwargs. If a different type of exception is<br>
|
|
thrown, it will not be caught, and the test case will be<br>
|
|
deemed to have suffered an error, exactly as for an<br>
|
|
unexpected exception.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-assert_"><strong>assert_</strong></a> = failUnless(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test unless the expression is true.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-countTestCases"><strong>countTestCases</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-debug"><strong>debug</strong></a>(self)</dt><dd><tt>Run the test without collecting errors in a TestResult</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-defaultTestResult"><strong>defaultTestResult</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-fail"><strong>fail</strong></a>(self, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail immediately, with the given message.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-failIf"><strong>failIf</strong></a>(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test if the expression is true.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-failIfAlmostEqual"><strong>failIfAlmostEqual</strong></a>(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-failIfEqual"><strong>failIfEqual</strong></a>(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-failUnless"><strong>failUnless</strong></a>(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test unless the expression is true.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-failUnlessAlmostEqual"><strong>failUnlessAlmostEqual</strong></a>(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-failUnlessEqual"><strong>failUnlessEqual</strong></a>(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-failUnlessRaises"><strong>failUnlessRaises</strong></a>(self, excClass, callableObj, *args, **kwargs)</dt><dd><tt>Fail unless an exception of class excClass is thrown<br>
|
|
by callableObj when invoked with arguments args and keyword<br>
|
|
arguments kwargs. If a different type of exception is<br>
|
|
thrown, it will not be caught, and the test case will be<br>
|
|
deemed to have suffered an error, exactly as for an<br>
|
|
unexpected exception.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-id"><strong>id</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-run"><strong>run</strong></a>(self, result<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-shortDescription"><strong>shortDescription</strong></a>(self)</dt><dd><tt>Returns a one-line description of the test, or None if no<br>
|
|
description has been provided.<br>
|
|
<br>
|
|
The default implementation of this method returns the first line of<br>
|
|
the specified test method's docstring.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="GlyphsMethodsTestCase-tearDown"><strong>tearDown</strong></a>(self)</dt><dd><tt>Hook method for deconstructing the test fixture after testing it.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="unittest.html#TestCase">unittest.TestCase</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x14b0590><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 object (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>failureException</strong> = <class exceptions.AssertionError at 0x20a50><dd><tt>Assertion failed.</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="SaveTestCase">class <strong>SaveTestCase</strong></a>(<a href="robofab.test.test_objectsUFO.html#ContourMethodsTestCase">ContourMethodsTestCase</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="robofab.test.test_objectsUFO.html#SaveTestCase">SaveTestCase</a></dd>
|
|
<dd><a href="robofab.test.test_objectsUFO.html#ContourMethodsTestCase">ContourMethodsTestCase</a></dd>
|
|
<dd><a href="unittest.html#TestCase">unittest.TestCase</a></dd>
|
|
<dd><a href="__builtin__.html#object">__builtin__.object</a></dd>
|
|
</dl>
|
|
<hr>
|
|
Methods defined here:<br>
|
|
<dl><dt><a name="SaveTestCase-testCustomFileNameScheme"><strong>testCustomFileNameScheme</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-testSaveAs"><strong>testSaveAs</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-testSaveAs2"><strong>testSaveAs2</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="robofab.test.test_objectsUFO.html#ContourMethodsTestCase">ContourMethodsTestCase</a>:<br>
|
|
<dl><dt><a name="SaveTestCase-setUp"><strong>setUp</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-testAppendSegment"><strong>testAppendSegment</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-testReverseContour"><strong>testReverseContour</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-testStartSegment"><strong>testStartSegment</strong></a>(self)</dt></dl>
|
|
|
|
<hr>
|
|
Methods inherited from <a href="unittest.html#TestCase">unittest.TestCase</a>:<br>
|
|
<dl><dt><a name="SaveTestCase-__call__"><strong>__call__</strong></a>(self, result<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-__init__"><strong>__init__</strong></a>(self, methodName<font color="#909090">='runTest'</font>)</dt><dd><tt>Create an instance of the class that will use the named test<br>
|
|
method when executed. Raises a ValueError if the instance does<br>
|
|
not have a method with the specified name.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-__repr__"><strong>__repr__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-__str__"><strong>__str__</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-assertAlmostEqual"><strong>assertAlmostEqual</strong></a> = failUnlessAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-assertAlmostEquals"><strong>assertAlmostEquals</strong></a> = failUnlessAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-assertEqual"><strong>assertEqual</strong></a> = failUnlessEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-assertEquals"><strong>assertEquals</strong></a> = failUnlessEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-assertNotAlmostEqual"><strong>assertNotAlmostEqual</strong></a> = failIfAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-assertNotAlmostEquals"><strong>assertNotAlmostEquals</strong></a> = failIfAlmostEqual(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-assertNotEqual"><strong>assertNotEqual</strong></a> = failIfEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-assertNotEquals"><strong>assertNotEquals</strong></a> = failIfEqual(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-assertRaises"><strong>assertRaises</strong></a> = failUnlessRaises(self, excClass, callableObj, *args, **kwargs)</dt><dd><tt>Fail unless an exception of class excClass is thrown<br>
|
|
by callableObj when invoked with arguments args and keyword<br>
|
|
arguments kwargs. If a different type of exception is<br>
|
|
thrown, it will not be caught, and the test case will be<br>
|
|
deemed to have suffered an error, exactly as for an<br>
|
|
unexpected exception.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-assert_"><strong>assert_</strong></a> = failUnless(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test unless the expression is true.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-countTestCases"><strong>countTestCases</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-debug"><strong>debug</strong></a>(self)</dt><dd><tt>Run the test without collecting errors in a TestResult</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-defaultTestResult"><strong>defaultTestResult</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-fail"><strong>fail</strong></a>(self, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail immediately, with the given message.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-failIf"><strong>failIf</strong></a>(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test if the expression is true.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-failIfAlmostEqual"><strong>failIfAlmostEqual</strong></a>(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-failIfEqual"><strong>failIfEqual</strong></a>(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are equal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-failUnless"><strong>failUnless</strong></a>(self, expr, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail the test unless the expression is true.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-failUnlessAlmostEqual"><strong>failUnlessAlmostEqual</strong></a>(self, first, second, places<font color="#909090">=7</font>, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by their<br>
|
|
difference rounded to the given number of decimal places<br>
|
|
(default 7) and comparing to zero.<br>
|
|
<br>
|
|
Note that decimal places (from zero) is usually not the same<br>
|
|
as significant digits (measured from the most signficant digit).</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-failUnlessEqual"><strong>failUnlessEqual</strong></a>(self, first, second, msg<font color="#909090">=None</font>)</dt><dd><tt>Fail if the two objects are unequal as determined by the '=='<br>
|
|
operator.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-failUnlessRaises"><strong>failUnlessRaises</strong></a>(self, excClass, callableObj, *args, **kwargs)</dt><dd><tt>Fail unless an exception of class excClass is thrown<br>
|
|
by callableObj when invoked with arguments args and keyword<br>
|
|
arguments kwargs. If a different type of exception is<br>
|
|
thrown, it will not be caught, and the test case will be<br>
|
|
deemed to have suffered an error, exactly as for an<br>
|
|
unexpected exception.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-id"><strong>id</strong></a>(self)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-run"><strong>run</strong></a>(self, result<font color="#909090">=None</font>)</dt></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-shortDescription"><strong>shortDescription</strong></a>(self)</dt><dd><tt>Returns a one-line description of the test, or None if no<br>
|
|
description has been provided.<br>
|
|
<br>
|
|
The default implementation of this method returns the first line of<br>
|
|
the specified test method's docstring.</tt></dd></dl>
|
|
|
|
<dl><dt><a name="SaveTestCase-tearDown"><strong>tearDown</strong></a>(self)</dt><dd><tt>Hook method for deconstructing the test fixture after testing it.</tt></dd></dl>
|
|
|
|
<hr>
|
|
Data and other attributes inherited from <a href="unittest.html#TestCase">unittest.TestCase</a>:<br>
|
|
<dl><dt><strong>__dict__</strong> = <dictproxy object at 0x14b0f50><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 object (if defined)</tt></dl>
|
|
|
|
<dl><dt><strong>failureException</strong> = <class exceptions.AssertionError at 0x20a50><dd><tt>Assertion failed.</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="-testGlyphNameToFileName"><strong>testGlyphNameToFileName</strong></a>(glyphName, glyphSet)</dt></dl>
|
|
</td></tr></table>
|
|
</body></html> |