#NEWLINE# def test_unlock( self ) : #NEWLINE# #INDENT# p = daemon . Pidfile ( 'thefile' , 'python' ) #NEWLINE# p . unlock ( ) #NEWLINE# self . fcntl . flock . assert_has_calls ( [ mock . call ( FAKE_FD , ( self . fcntl . LOCK_EX | p . fcntl . LOCK_NB ) ) , mock . call ( FAKE_FD , self . fcntl . LOCK_UN ) ] )