'Freeing an allocated key removes it from C{_createdKeys}.'

def test_freeKnownKey(self):

    lib = FakeLib()
    key = lib.EC_KEY_new_by_curve_name(FakeNID('name'))
    lib.EC_KEY_free(key)
    self.assertEqual(set(), lib._createdKeys)
