

@unittest.skipUnless((not sys.platform.startswith('win')), 'skip windows')
@unittest.skipUnless((sys.version_info[:2] > (2, 6)), 'skip python 2.6')
def test_all_options_documented(self):

    def grep(patter, filename):
        return int(subprocess.check_output(('grep "%s" %s|wc -l' % (patter, filename)), shell=True))
    defined = (grep('^define(', 'flower/options.py') - 4)
    documented = grep('^~~', 'docs/config.rst')
    self.assertEqual(defined, documented, msg='Missing option documentation. Make sure all options are documented in docs/config.rst')

dataset/ETHPy150Open mher/flower/tests/test_command.py TestFlowerCommand.test_all_options_documented/original