def test_wrong_element_type(self): """Test error message for wrong list element type.""" config = Config() config.load(os.path.join(TEST_CONFIG_DIR, "wrong-element-type.yaml")) with self.assertRaisesRegex( ValueError, "'customize-hooks' has type 'CommentedMap'"): config.check()
def test_commented_packages(): """Test commented-packages.yaml file.""" config = Config() config.load(os.path.join(TEST_CONFIG_DIR, "commented-packages.yaml")) config.sanitize_packages() config.check()
def test_check_example(): """Test example unstable.yaml file.""" config = Config() config.load(os.path.join(EXAMPLE_CONFIG_DIR, "Debian-unstable.yaml")) config["name"] = "Debian-unstable" config.check()