예제 #1
0
파일: test_service.py 프로젝트: vindir/salt
 def test_missing(self):
     '''
     Test to inverse of service.available.
     '''
     with patch.object(service, 'get_all', return_value=['name1', 'A']):
         self.assertTrue(service.missing('name'))
예제 #2
0
파일: test_service.py 프로젝트: zxstar/salt
 def test_missing(self):
     """
     Test to inverse of service.available.
     """
     with patch.object(service, "get_all", return_value=["name1", "A"]):
         self.assertTrue(service.missing("name"))
예제 #3
0
파일: service_test.py 프로젝트: DaveQB/salt
 def test_missing(self):
     '''
     Test to inverse of service.available.
     '''
     with patch.object(service, 'get_all', return_value=['name1', 'A']):
         self.assertTrue(service.missing('name'))