comparison tests/test-lock.py @ 26381:94dc10834b79

test-lock.py: copy-edit assertions about file existing Before: expected lock to exists but actually did not exists After: expected lock to exist but actually did not exist
author Siddharth Agarwal <sid0@fb.com>
date Thu, 24 Sep 2015 17:33:13 -0700
parents db4c192cb9b3
children b673e89affc9
comparison
equal deleted inserted replaced
26380:56a640b0f656 26381:94dc10834b79
78 else: 78 else:
79 return 'not called' 79 return 'not called'
80 80
81 def _toexists(self, exists): 81 def _toexists(self, exists):
82 if exists: 82 if exists:
83 return 'exists' 83 return 'exist'
84 else: 84 else:
85 return 'not exists' 85 return 'not exist'
86 86
87 class testlock(unittest.TestCase): 87 class testlock(unittest.TestCase):
88 def testlock(self): 88 def testlock(self):
89 state = teststate(self) 89 state = teststate(self)
90 lock = state.makelock() 90 lock = state.makelock()