X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=tests%2Ftest_srcformats.py;fp=tests%2Ftest_srcformats.py;h=9bc0ddf236dd064e434daa832ffcb05e17dda465;hb=ef55b8c79ae2d3e593aacb7a1f4a3c893bf62094;hp=1e78981b6a9ec45dc3c5cbb4a7bf5b37a0881d02;hpb=8c266683b16ad4f1ddcf2cc48cc7931ac007af59;p=dak.git diff --git a/tests/test_srcformats.py b/tests/test_srcformats.py index 1e78981b..9bc0ddf2 100755 --- a/tests/test_srcformats.py +++ b/tests/test_srcformats.py @@ -106,28 +106,6 @@ class FormatTreeQuiltTestCase(SourceFormatTestCase): ## -class ParseFormatTestCase(unittest.TestCase): - def assertParse(self, format, expected): - self.assertEqual(parse_format(format), expected) - - def assertParseFail(self, format): - self.assertRaises( - UnknownFormatError, - lambda: parse_format(format) - ) - - def testParse(self): - self.assertParse('1.0', (1, 0)) - - def testEmpty(self): - self.assertParseFail('') - self.assertParseFail(' ') - self.assertParseFail(' ') - - def textText(self): - self.assertParse('1.2 (three)', (1, 2, 'three')) - self.assertParseFail('0.0 ()') - class ValidateFormatTestCase(unittest.TestCase): def assertValid(self, format, **kwargs): kwargs['is_a_dsc'] = kwargs.get('is_a_dsc', True)