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