def __init__(self, protocol, psm, identifier): """Initialize a new MrpPlaying.""" super().__init__(identifier) self.protocol = protocol self.psm = psm self.artwork_cache = Cache(limit=4)
def setUp(self): self.cache = Cache(limit=2)
def __init__(self, identifier, apple_tv): """Initialize metadata instance.""" super().__init__(identifier) self.apple_tv = apple_tv self.artwork_cache = Cache(limit=4)
def cache(): yield Cache(limit=2)