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 all versions of Python starting with 2.7. 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/3bdcd198-a3b4-4081-91a3-63ac7aa5ac1a%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.