Example #1
0
 def test_get_source_url_macos(self):
     """Test get_source_url on macos."""
     self.mock.system.return_value = 'Darwin'
     self.assertEqual('gs://test-deployment-bucket/macos.zip',
                      update_task.get_source_url())
Example #2
0
 def test_get_source_url_linux(self):
     """Test get_source_url on linux."""
     self.mock.system.return_value = 'Linux'
     self.assertEqual('gs://test-deployment-bucket/linux.zip',
                      update_task.get_source_url())
Example #3
0
 def test_get_source_url_windows(self):
     """Test get_source_url on windows."""
     self.mock.system.return_value = 'Windows'
     self.assertEqual('gs://test-deployment-bucket/windows.zip',
                      update_task.get_source_url())