old_contents: #!/usr/bin/env python
  
  # standard library modules, , ,
  import unittest
  import os
  
  # vcs, , represent version controlled directories, internal
  from yotta.lib import vcs
  # fsutils, , misc filesystem utils, internal
  from yotta.lib import fsutils
  
  
  # !!! FIXME: need to use a publicly accessible repository here
  Test_Repo = "git@github.com:ARM-RD/foundation.git"
  
  class TestSequenceFunctions(unittest.TestCase):
      def setUp(self):
          self.working_copy = vcs.Git.cloneToTemporaryDir("git@github.com:ARM-RD/foundation.git")
          self.assertTrue(self.working_copy)
          
      def tearDown(self):
          self.working_copy.remove()
  
      def test_isClean(self):
          self.assertTrue(self.working_copy.isClean())
          fsutils.rmF(os.path.join(self.working_copy.workingDirectory(), 'package.json'))
          self.assertFalse(self.working_copy.isClean())
      
      def test_commit(self):
          with open(os.path.join(self.working_copy.workingDirectory(), 'package.json'), "a") as f:
              f.write("\n")
          self.working_copy.markForCommit('package.json')
          self.working_copy.commit('test commit: DO NOT PUSH')
          self.assertTrue(self.working_copy.isClean())
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: #!/usr/bin/env python
  
  # standard library modules, , ,
  import unittest
  import os
  
  # vcs, , represent version controlled directories, internal
  from yotta.lib import vcs
  # fsutils, , misc filesystem utils, internal
  from yotta.lib import fsutils
  
  
  Test_Repo = "git@github.com:autopulated/testing-dummy.git"
  
  class TestSequenceFunctions(unittest.TestCase):
      def setUp(self):
          self.working_copy = vcs.Git.cloneToTemporaryDir(Test_Repo)
          self.assertTrue(self.working_copy)
          
      def tearDown(self):
          self.working_copy.remove()
  
      def test_isClean(self):
          self.assertTrue(self.working_copy.isClean())
          fsutils.rmF(os.path.join(self.working_copy.workingDirectory(), 'package.json'))
          self.assertFalse(self.working_copy.isClean())
      
      def test_commit(self):
          with open(os.path.join(self.working_copy.workingDirectory(), 'package.json'), "a") as f:
              f.write("\n")
          self.working_copy.markForCommit('package.json')
          self.working_copy.commit('test commit: DO NOT PUSH')
          self.assertTrue(self.working_copy.isClean())
  
  if __name__ == '__main__':
      unittest.main()
  
subject: use public component for testing