old_contents: """
  Tests for `kolibri.utils.cli` module.
  """
  from __future__ import absolute_import
  from __future__ import print_function
  
  from mock import patch
  
  
  @patch("sqlalchemy.create_engine")
  def test_status_no_db_access(create_engine_mock):
      """
      Tests that status does not try to access the database
      """
      try:
          from kolibri.utils import cli
  
          cli.status.callback()
      except SystemExit:
          pass
      create_engine_mock.assert_not_called()
  
  
  @patch("sqlalchemy.create_engine")
  def test_stop_no_db_access(create_engine_mock):
      """
      Tests that status does not try to access the database
      """
      try:
          from kolibri.utils import cli
  
          cli.stop.callback()
      except SystemExit:
          pass
      create_engine_mock.assert_not_called()
  
new_contents: """
  Tests for `kolibri.utils.cli` module.
  These tests deliberately omit `@pytest.mark.django_db` from the tests,
  so that any attempt to access the Django database during the running
  of these cli methods will result in an error and test failure.
  """
  from __future__ import absolute_import
  from __future__ import print_function
  
  from mock import patch
  
  
  @patch("sqlalchemy.create_engine")
  def test_status_no_db_access(create_engine_mock):
      """
      Tests that status does not try to access the database
      """
      try:
          from kolibri.utils import cli
  
          cli.status.callback()
      except SystemExit:
          pass
      create_engine_mock.assert_not_called()
  
  
  @patch("sqlalchemy.create_engine")
  def test_stop_no_db_access(create_engine_mock):
      """
      Tests that status does not try to access the database
      """
      try:
          from kolibri.utils import cli
  
          cli.stop.callback()
      except SystemExit:
          pass
      create_engine_mock.assert_not_called()
  
subject: Add explanatory comment.