Example #1
0
 def test_available(self):
     '''
     Test to returns ``True`` if the specified service is available,
     otherwise returns ``False``.
     '''
     with patch.object(service, 'get_all', return_value=['name', 'A']):
         self.assertTrue(service.available('name'))
Example #2
0
 def test_available(self):
     """
     Test to returns ``True`` if the specified service is available,
     otherwise returns ``False``.
     """
     with patch.object(service, "get_all", return_value=["name", "A"]):
         self.assertTrue(service.available("name"))
Example #3
0
 def test_available(self):
     '''
     Test to returns ``True`` if the specified service is available,
     otherwise returns ``False``.
     '''
     with patch.object(service, 'get_all', return_value=['name', 'A']):
         self.assertTrue(service.available('name'))