added safety checks. thanks @walkman for the idea
fixed mixing tabs and spaces
tutorial now uses best practices for settings
calling tenant_context when there is no previous tenant no longer results in exception. added regression test
tests run again. fixes #151
Basic test
Merge branch 'master' into celery_tasks
Added tests, reworked structure