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'))
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"))
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'))