Esempio n. 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'))
Esempio n. 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"))
Esempio n. 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'))