All you need to do is add an example of one of your classes in a test, similar to the other tests in the file. The file just tests that all the arguments of your class are subclasses of Basic.
Basically, for any SymPy object, all the identifiying information should be stored in the .args of the object, and should satisfy all(isinstance(x, Basic) for x in expr.args) # All args should be Basic and expr.func(*expr.args) == expr # expr should be rebuildable from its args See http://docs.sympy.org/0.7.3/tutorial/manipulation.html for a more in-depth introduction to how this all works. Aaron Meurer On Mon, Jul 15, 2013 at 1:02 PM, Mary Clark <[email protected]> wrote: > Hello all, > > For some of the classes I've written I need to add tests for them in > sympy/core/tests/test_args.py. However, I don't quite understand what is > going on in these tests, and what I need to do, exactly. The classes I need > to add tests for are Standard_Cartan and CartanType_generator (see here: > https://github.com/meclark256/sympy/commit/46757c53e3fa6437cc34eb33ca482ec2fb58e005 > for the code for these classes). Any clarification would be great. > > Mary > > -- > You received this message because you are subscribed to the Google Groups > "sympy" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/sympy. > For more options, visit https://groups.google.com/groups/opt_out. > > -- You received this message because you are subscribed to the Google Groups "sympy" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/sympy. For more options, visit https://groups.google.com/groups/opt_out.
