'pathrender: pattern parsing with warnings'

def test_parsing_warnings(self):

    pattern = Pattern(u'{$Disc.}$Track    -    $Artist    -    $Title{    [$Year]')
    self.assertEqual(set([Warnings.UNCLOSED_OPTIONAL]), pattern.warnings)
    pattern = Pattern(u"{$Disc.}$Track    -    $Artist    -    $Title{    [$Year]'}")
    self.assertEqual(set([Warnings.UNCLOSED_ESCAPE, Warnings.UNCLOSED_OPTIONAL]), pattern.warnings)
