def test_cache_attributes(self):
     x = AudioFile()
     x.multisong = not x.multisong
     x["a"] = "b" # clears cache
     # attribute should be unchanged
     self.failIfEqual(AudioFile().multisong, x.multisong)
Example #2
0
 def test_cache_attributes(self):
     x = AudioFile()
     x.multisong = not x.multisong
     x["a"] = "b"  # clears cache
     # attribute should be unchanged
     self.failIfEqual(AudioFile().multisong, x.multisong)