Example #1
0
 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'))
Example #2
0
 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'))