Esempio n. 1
0
 def test_download_create_dir(self, mock_makedirs, mock_exists, mMr):
     c = Charm()
     mock_exists.side_effect = [False, False]
     download(c, '/tmp')
     mock_makedirs.assert_called_with('/tmp')
Esempio n. 2
0
 def test_download(self, mock_exists, mMr):
     c = Charm()
     mock_exists.side_effect = [False, True]
     download(c, '/tmp')
     mMr.assert_called_with('/tmp', mr_compat=False)