def METHOD_NAME(self):
    raised = self.assertRaises(
        project_loader.errors.SnapcraftAfterPartMissingError,
        self.make_snapcraft_project,
        [("part1", dict(plugin="nil", after=["inexistent-part"]))],
    )
    self.assertThat(raised.part_name, Equals("part1"))
    self.assertThat(raised.after_part_name, Equals("inexistent-part"))