'Create a L{FakeECKey}, save it to C{_createdKeys} and return it.
@param nid: an arbitrary object that is passed to the constructor of
L{FakeECKey}.
@return: a new L{FakeECKey}
@rtype: L{FakeECKey}'

def EC_KEY_new_by_curve_name(self, nid):

    key = FakeECKey(nid)
    self._createdKeys.add(key)
    return key
