class_docstr: Checks all functions of the FileCodeDriver
class_docstr_tok: ["Checks","all","functions","of","the","FileCodeDriver"]
code: def test_check_unstaged_changes(self):
      # Test failure, not initialized
      failed = False
      try:
          self.file_code_driver.create_ref()
      except CodeNotInitialized:
          failed = True
      assert failed
      self.__setup()
  
      # Test for unstaged changes
      unstaged = False
      try:
          self.file_code_driver.check_unstaged_changes()
      except UnstagedChanges:
          unstaged = True
      assert unstaged
  
      # Test if the changes are commited
      self.file_code_driver.create_ref()
      unstaged = self.file_code_driver.check_unstaged_changes()
  
      assert not unstaged
  
imports: from __future__ import division
  from __future__ import unicode_literals
  import os
  import time
  import shutil
  import tempfile
  import platform
  from io import open
  from datmo.core.controller.code.driver.file import FileCodeDriver
  from datmo.core.util.exceptions import PathDoesNotExist, FileIOError, CodeNotInitialized, UnstagedChanges, CommitDoesNotExist
label_desc: Use image node_id 18 for calling the TestFileCodeDriver obj's underlying member method code with example usage: obj.test_check_unstaged_changes() without return types