File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments