def METHOD_NAME(self):
    c = self.z_context
    cd = Context.__dict__
    for m in ("beginScope", "endScope", "setSourceFile", "setPosition",
              "setRepeat"):
        self.assertIn(m, cd)  # check against spelling errors
        with self.assertRaises(NotImplementedError):
            getattr(c, m)()