modify api tests to use django TestCase
Merge pull request #408 from murrown/fix_api_tests_setup

Modify api tests to use django TestCase