All the AP tests were basically doing the same validation. Refactor this code into validation.py and import that into the tests.