permission_denied with atomic in unit test djnago code example Example: Got an error creating the test database: permission denied to create database => ALTER USER django CREATEDB;