def test_plugs_as_properties_should_fail(self): self.data += ' plugs: [plug1]' self.make_snapcraft_yaml(self.data) with self.assertRaises(SystemExit): internal_yaml.load_config() expected_message = self.expected_message_template.format('plugs') self.assertEqual(expected_message, self.fake_logger.output)