def test_candidates(self, pre, post): """ Names containing "settings" are candidates. """ modname = pre + 'settings' + post note('modname={!r}'.format(modname)) self.assertTrue(utils.is_candidate_name(modname))
def test_exceptions(self): """ The special-cased names are not candidates. """ for modname in self.specials: with self.subTest(modname=modname): self.assertFalse(utils.is_candidate_name(modname))
def test_modified_exceptions(self, pre, post): """ Prefixed and suffixed versions of the special-cased names are not excepted. """ assume(pre or post) # Require at least some prefix or suffix for special in self.specials: modname = pre + special + post note('modname={!r}'.format(modname)) self.assertTrue(utils.is_candidate_name(modname))
def test_non_candidates(self, modname): """ Random names aren't candidates. """ self.assertFalse(utils.is_candidate_name(modname))