Example #1
0
 def test_go_download(self, aumock):
     """
         Test that we are actually handing off to charm-helpers to
         download a specific archive of Go. This is non-configurable so
         its reasonably safe to assume we're going to always do this,
         and when it changes we shall curse the brittleness of this test.
     """
     ins_mock = aumock.return_value.install
     install.download_go()
     url = 'https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz'
     sha1 = '5020af94b52b65cc9b6f11d50a67e4bae07b0aff'
     ins_mock.assert_called_with(url, '/usr/local', sha1, 'sha1')
Example #2
0
 def test_go_download(self, aumock):
     """
         Test that we are actually handing off to charm-helpers to
         download a specific archive of Go. This is non-configurable so
         its reasonably safe to assume we're going to always do this,
         and when it changes we shall curse the brittleness of this test.
     """
     ins_mock = aumock.return_value.install
     install.download_go()
     url = 'https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz'
     sha1='5020af94b52b65cc9b6f11d50a67e4bae07b0aff'
     ins_mock.assert_called_with(url, '/usr/local', sha1, 'sha1')