learningequality/ka-lite — pull request #2369 by aronasorman (2014-09-15 17:58:53+00:00)
Title: Refactor tests

WIP. Refactors the KA Lite test inheritance hierarchy into three base classes:

- `KALiteTestCase`: The base class. Does setup work needed by all tests.
- `KALiteClientCase`: Sets up the Django client and initializes it to `self.client`.
- `KALiteBrowserTestCase`: Sets up the browser + an instance of the server.

All browser convenience functions have also been added to `BrowserActionMixins`. Client convenience functions are in `ClientActionMixins`. Other changes include:

- All mixins can be imported from `kalite.testing.mixins`. No need for `kalite.testing.mixins.*_mixins`.
- Pdb doesn't automatically activate anymore with `--failfast`.