Lines Matching refs:mach
30 mach = file_lock_machine.Machine('qqqraymes.mtv')
32 self.assertFalse(mach.Unlock())
33 mach = file_lock_machine.Machine('qqqraymes.mtv', auto=True)
35 self.assertFalse(mach.Unlock())
38 mach = file_lock_machine.Machine('otter.mtv', '/tmp')
40 self.assertTrue(mach.Lock(exclusive=True))
41 self.assertTrue(mach.Unlock(exclusive=True))
43 mach = file_lock_machine.Machine('otter.mtv', '/tmp', True)
45 self.assertTrue(mach.Lock(exclusive=True))
46 self.assertTrue(mach.Unlock(exclusive=True))
49 mach = file_lock_machine.Machine('chrotomation.mtv')
51 self.assertTrue(mach.Lock(exclusive=False))
53 self.assertTrue(mach.Unlock(exclusive=False))
54 self.assertTrue(mach.Lock(exclusive=True))
55 self.assertTrue(mach.Unlock(exclusive=True))
57 mach = file_lock_machine.Machine('chrotomation.mtv', auto=True)
59 self.assertTrue(mach.Lock(exclusive=False))
61 self.assertTrue(mach.Unlock(exclusive=False))
62 self.assertTrue(mach.Lock(exclusive=True))
63 self.assertTrue(mach.Unlock(exclusive=True))
66 mach = file_lock_machine.Machine('atree.mtv')
67 self.assertTrue(mach.Lock(exclusive=True))
69 self.assertFalse(mach.Lock(exclusive=True))
70 self.assertFalse(mach.Lock(exclusive=False))
71 self.assertTrue(mach.Unlock(exclusive=True))
73 mach = file_lock_machine.Machine('atree.mtv', auto=True)
74 self.assertTrue(mach.Lock(exclusive=True))
76 self.assertFalse(mach.Lock(exclusive=True))
77 self.assertFalse(mach.Lock(exclusive=False))
78 self.assertTrue(mach.Unlock(exclusive=True))
81 mach = file_lock_machine.Machine('testExclusiveState')
82 self.assertTrue(mach.Lock(exclusive=True))
84 self.assertFalse(mach.Lock(exclusive=False))
85 self.assertTrue(mach.Unlock(exclusive=True))
87 mach = file_lock_machine.Machine('testExclusiveState', auto=True)
88 self.assertTrue(mach.Lock(exclusive=True))
90 self.assertFalse(mach.Lock(exclusive=False))
91 self.assertTrue(mach.Unlock(exclusive=True))
94 mach = file_lock_machine.Machine('lockgone', auto=True)
99 self.assertTrue(mach.Lock(exclusive=True))
102 mach = file_lock_machine.Machine('other_lock', auto=True)
106 self.assertFalse(mach.Lock(exclusive=True))
109 self.assertTrue(mach.Lock(exclusive=True))
112 mach = file_lock_machine.Machine('other_unlock', auto=True)
116 self.assertTrue(mach.Unlock(exclusive=True))
117 self.assertTrue(mach.Lock(exclusive=True))