def METHOD_NAME(self):
    """Check when required arguments are not given.
    When this happens, it raises a KeyError exception.
    """
    kwargs = {'code': 1, 'error': 'Fatal error'}
    self.assertRaises(KeyError, MockErrorArgs, **kwargs)