'Ensures that the username is readonly to skip Django validation in the `auth_user_change` view.
Changing the username is still possible using the database or from the model directly.
However, changing the username might cause issues with the logs and/or the cs_comments_service since it
stores the username in a different database.'

def test_username_is_readonly(self):

    request = Mock()
    self.assertIn('username', self.admin.get_readonly_fields(request))
