The tests should be in the same module as the new class, i.e. in sympy.polys.agca.tests in this case. If you created this class in a new file, you should probably create a new file in the tests folder as well. E.g. if your class is in a file called filename.py, then the corresponding test file should be called test_filename.py.
And yes, the code should work in Python 2.7 too. You shouldn't have to write separate code though. Have a look at this: https://github.com/sympy/sympy/wiki/Development-workflow#python-3 -- 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 sympy+unsubscr...@googlegroups.com. To post to this group, send email to sympy@googlegroups.com. Visit this group at https://groups.google.com/group/sympy. To view this discussion on the web visit https://groups.google.com/d/msgid/sympy/7abc77c7-c252-4009-aec3-26cb05430194%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.