Skip to content

Commit 01d9674

Browse files
committed
Fix test
1 parent a13756d commit 01d9674

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/unit/groups/lock_test.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,18 +52,16 @@ def test_create_lock_with_subresources(self):
5252
lock = self.client.locks.create(
5353
entity_type="linode",
5454
entity_id=456,
55-
lock_type=LockType.cannot_delete_with_subresources,
55+
lock_type=LockType.cannot_delete,
5656
)
5757

5858
self.assertEqual(m.call_url, "/locks")
5959
self.assertEqual(m.call_data["entity_type"], "linode")
6060
self.assertEqual(m.call_data["entity_id"], 456)
61-
self.assertEqual(
62-
m.call_data["lock_type"], "cannot_delete_with_subresources"
63-
)
61+
self.assertEqual(m.call_data["lock_type"], LockType.cannot_delete)
6462

6563
self.assertEqual(lock.id, 1)
66-
self.assertEqual(lock.lock_type, "cannot_delete")
64+
self.assertEqual(lock.lock_type, LockType.cannot_delete)
6765
self.assertIsNotNone(lock.entity)
6866
self.assertEqual(lock.entity.id, 123)
6967

0 commit comments

Comments
 (0)