def test_remove_braces_BROKEN(self): self.assertEqual(remove_braces('Able Baker [1981].mkv'), 'Able.Baker.1981.mkv') self.assertEqual( remove_braces('[able].baker.charlie.S2...01.[720p.H264][AAAAAAAA].mkv'), 'baker.charlie.S2.01.[AAAAAAAA].mkv') self.assertEqual( remove_braces('[able].baker.charlie.S2...01.[720p.H264][AAAAAAAA].mkv', preserve_checksum=False), 'baker.charlie.S2.01.mkv')
def test_remove_braces(self): self.assertEqual(remove_braces('foo.bar.(what).zamf'), 'foo.bar.zamf') self.assertEqual(remove_braces('foo.bar.(w(h)at).zamf'), 'foo.bar.zamf') self.assertEqual( remove_braces('The Band - Let Me Out - 1993 (Vinyl - MP3 - V0 (VBR)) (1).torrent'), 'The.Band.-.Let.Me.Out.-.1993.torrent')