class_docstr: Checks all functions of the GitCodeDriver
class_docstr_tok: ["Checks","all","functions","of","the","GitCodeDriver"]
code: def test_add(self):
      self.git_code_manager.init()
      # Test True case for new file no option
      test_filepath = os.path.join(
          self.git_code_manager.filepath, "test.txt"
      )
      with open(test_filepath, "wb") as f:
          f.write(to_bytes(str("test")))
      result = self.git_code_manager.add(test_filepath)
      assert result == True
      # Test True case for new file with option
      result = self.git_code_manager.add(test_filepath, option="-f")
      assert result == True
  
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.git import GitCodeDriver, GitHostDriver
  from datmo.core.util.exceptions import CommitFailed, CommitDoesNotExist, PathDoesNotExist, GitExecutionError, DatmoFolderInWorkTree, UnstagedChanges
label_desc: Use image node_id 23 for calling the TestGitCodeDriver obj's underlying member method code with example usage: obj.test_add() without return types