MCPcopy
hub / github.com/quodlibet/mutagen / setUp

Method setUp

tests/test_flac.py:621–632  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

619class TFLACBadDuplicateVorbisComment(TestCase):
620
621 def setUp(self):
622 self.filename = get_temp_copy(
623 os.path.join(DATA_DIR, "silence-44-s.flac"))
624
625 # add a second vorbis comment block to the file right after the first
626 some_tags = VCFLACDict()
627 some_tags["DUPLICATE"] = ["SECOND"]
628 f = FLAC(self.filename)
629 f.tags["DUPLICATE"] = ["FIRST"]
630 assert f.tags is f.metadata_blocks[2]
631 f.metadata_blocks.insert(3, some_tags)
632 f.save()
633
634 def tearDown(self):
635 os.unlink(self.filename)

Callers

nothing calls this directly

Calls 5

saveMethod · 0.95
get_temp_copyFunction · 0.90
VCFLACDictClass · 0.90
FLACClass · 0.90
insertMethod · 0.80

Tested by

no test coverage detected