unittest

Zunbeltz Izaola zunbeltz at wm.lc.ehu.es.XXX
Mon Jan 26 10:17:21 EST 2004


Tnaks, why is this so?

zunbeltz

Skip Montanaro <skip at pobox.com> writes:

>     Zunbeltz> class KnowValues(unittest.TestCase):
> 
>     Zunbeltz>     KnownRotationMatrices = [
>     Zunbeltz>         ((Rotational3Part([[-1,0,0],[0,1,0],[0,0,-1]])),
>     Zunbeltz>         (1, -1, 2, matrix.vector([0,1,0])))
>     Zunbeltz>         ]
> 
>     Zunbeltz>     def TestRotationalPartdeterminant(self):
>     Zunbeltz>         """ RotationalPart. determinant with known values."""
>     Zunbeltz>         for i in  self.KnownRotationMatrices:
>     Zunbeltz>             det = i[0].determinant()
>     Zunbeltz>             self.assertEqual(det,i[1][0])
> 
> 
>     Zunbeltz> if __name__ == "__main__":
>     Zunbeltz>    unittest.main()
> 
>     Zunbeltz> but when i run this scrip i get the following output
> 
>     ...
> 
> Try renaming your test case method "test_rotational_partdeterminant".
> 
> Skip



More information about the Python-list mailing list