old_contents: """Tests for the Texcavator utility functions"""
  import os
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings")
  
new_contents: """Tests for the Texcavator utility functions"""
  import os
  os.environ.setdefault("DJANGO_SETTINGS_MODULE", "texcavator.settings")
  
  from nose.tools import assert_equals
  from testfixtures import compare
  
  import texcavator.utils as utils
  
  
  def test_json_error_message():
      response = utils.json_error_message('test')
  
      compare(response.content, '{"status": "error", "msg": "test"}')
      assert_equals(response.status_code, 200)
  
subject: Add test for utility function json_error_message()