Ejemplo n.º 1
0
 def test_clone_repository(self, spmock):
     """
      We're not using a unit-tested git library - so ensure our subprocess
      call is consistent. If we change this, we want to know we've broken it.
     """
     install.clone_repository()
     repo = 'https://github.com/GoogleCloudPlatform/kubernetes.git'
     direct = '/opt/kubernetes'
     spmock.check_output.assert_called_with(['git', 'clone', repo, direct])
Ejemplo n.º 2
0
 def test_clone_repository(self, spmock):
     """
      We're not using a unit-tested git library - so ensure our subprocess
      call is consistent. If we change this, we want to know we've broken it.
     """
     install.clone_repository()
     repo = 'https://github.com/GoogleCloudPlatform/kubernetes.git'
     direct = '/opt/kubernetes'
     spmock.check_output.assert_called_with(['git', 'clone', repo, direct])