@@ -130,54 +130,6 @@ def test_create_lock_cannot_delete_with_subresources(
130130
131131
132132def test_delete_lock (test_linode_client , linode_for_lock ):
133- """
134- Test that a lock can be deleted.
135- """
136- # Create a lock
137- lock = test_linode_client .locks .create (
138- entity_type = "linode" ,
139- entity_id = linode_for_lock .id ,
140- lock_type = LockType .cannot_delete ,
141- )
142-
143- lock_id = lock .id
144-
145- # Delete the lock using the group method
146- result = test_linode_client .locks .delete (lock )
147-
148- assert result is True
149-
150- # Verify the lock no longer exists
151- locks = test_linode_client .locks ()
152- lock_ids = [lk .id for lk in locks ]
153- assert lock_id not in lock_ids
154-
155-
156- def test_delete_lock_by_id (test_linode_client , linode_for_lock ):
157- """
158- Test that a lock can be deleted by ID.
159- """
160- # Create a lock
161- lock = test_linode_client .locks .create (
162- entity_type = "linode" ,
163- entity_id = linode_for_lock .id ,
164- lock_type = LockType .cannot_delete ,
165- )
166-
167- lock_id = lock .id
168-
169- # Delete the lock by ID
170- result = test_linode_client .locks .delete (lock_id )
171-
172- assert result is True
173-
174- # Verify the lock no longer exists
175- locks = test_linode_client .locks ()
176- lock_ids = [lk .id for lk in locks ]
177- assert lock_id not in lock_ids
178-
179-
180- def test_lock_object_delete (test_linode_client , linode_for_lock ):
181133 """
182134 Test that a lock can be deleted using the Lock object's delete method.
183135 """
0 commit comments