'Helper method to verify that the Probe sets up the right handler.'

def Init(self, name, artifact, handler_class, result_context):

    cfg = self.configs.get(name)
    probe = checks.Probe(**cfg)
    self.assertEqual(artifact, probe.artifact)
    self.assertIsInstance(probe.handler, handler_class)
    self.assertIsInstance(probe.matcher, checks.Matcher)
    self.assertItemsEqual(result_context, str(probe.result_context))
