コード例 #1
0
ファイル: launchctl_test.py プロジェクト: bryson/salt
 def test_available(self):
     '''
     Test for Check that the given service is available.
     '''
     with patch.object(launchctl,
                       '_service_by_name', return_value=True):
         self.assertTrue(launchctl.available('job_label'))
コード例 #2
0
ファイル: test_launchctl.py プロジェクト: vindir/salt
 def test_available(self):
     '''
     Test for Check that the given service is available.
     '''
     with patch.object(launchctl,
                       '_service_by_name', return_value=True):
         self.assertTrue(launchctl.available('job_label'))