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