<s> import fixtures <EOL> from solum . openstack . common import lockutils <EOL> class LockFixture ( fixtures . Fixture ) : <EOL> """<STR_LIT>""" <EOL> def __init__ ( self , name , lock_file_prefix = None ) : <EOL> self . mgr = lockutils . lock ( name , lock_file_prefix , True ) <EOL> def setUp ( self ) : <EOL> super ( LockFixture , self ) . setUp ( ) <EOL> self . addCleanup ( self . mgr . __exit__ , None , None , None ) <EOL> self . mgr . __enter__ ( ) </s>
