示例#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'))
示例#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"))
示例#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'))