old_contents: import os
  from unittest import TestCase
  
  import requests
  
  from furikura import utils
  
  
  def test_request():
      requests.get('https://example.com')
  
  class TestUtils(TestCase):
      def test_get_file(self):
          self.assertEqual(utils.get_file("testfile"), "/usr/share/testfile")
  
      def test_check_connection(self):
          self.addTypeEqualityFunc(type, utils.check_connection(test_request))
  
      def test_autostart(self):
          os.makedirs(os.path.expanduser('~/.config/autostart/'), exist_ok=True)
  
          utils.autostart('add')
          self.assertTrue(os.path.islink(os.path.expanduser('~/.config/autostart/furikura.desktop')))
  
          utils.autostart('remove')
          self.assertFalse(os.path.islink(os.path.expanduser('~/.config/autostart/furikura.desktop')))
  
  
new_contents: import os
  from unittest import TestCase
  
  import requests
  
  from furikura import utils
  from furikura.config import Config
  
  config_cls = Config()
  
  def test_request():
      requests.get('https://example.com')
  
  class TestUtils(TestCase):
      def test_get_file(self):
          self.assertEqual(utils.get_file("testfile"), "/usr/share/testfile")
  
      def test_check_connection(self):
          self.addTypeEqualityFunc(type, utils.check_connection(test_request))
  
      def test_autostart(self):
          os.makedirs(os.path.expanduser('~/.config/autostart/'), exist_ok=True)
  
          utils.autostart('add')
          self.assertTrue(os.path.islink(os.path.expanduser('~/.config/autostart/furikura.desktop')))
  
          utils.autostart('remove')
          self.assertFalse(os.path.islink(os.path.expanduser('~/.config/autostart/furikura.desktop')))
  
      def test_check_lock(self):
          os.makedirs(os.path.expanduser('~/.config/furikura/'), exist_ok=True)
  
          utils.check_lock()
          self.assertTrue(os.path.isfile(config_cls.LOCKFILE))
  
      def test_debug(self):
          self.addTypeEqualityFunc(type, utils.debug(test_request))
  
  
  
subject: Add 2 tests for Utils