class TestInternalQualityParser(QualityParser): parser = ParserInternal() def test_qualities(self): failures = self.get_quality_failures() assert not failures, '%s failures:\n%s' % (len(failures), '\n'.join(failures))
def test_quality_failures(self, test_quality): quality = ParserInternal().parse_movie(test_quality[0]).quality assert str(quality) == test_quality[1], ( '`%s` quality should be `%s` not `%s`' % (test_quality[0], test_quality[1], quality))
class TestInternalQualityParser(QualityParser): parser = ParserInternal()
class TestInternal(ParserTests): parser = ParserInternal()