Patchwork [1,of,7] test-lock.py: copy-edit assertions about file existing

login
register
mail settings
Submitter Siddharth Agarwal
Date Sept. 25, 2015, 7 p.m.
Message ID <2f8bf83ce463c8434289.1443207635@dev6666.prn1.facebook.com>
Download mbox | patch
Permalink /patch/10639/
State Accepted
Headers show

Comments

Siddharth Agarwal - Sept. 25, 2015, 7 p.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1443141193 25200
#      Thu Sep 24 17:33:13 2015 -0700
# Node ID 2f8bf83ce463c84342897fbb904f07c68b7919d7
# Parent  6d6573be7dc37376d9c5a22be8fbbfcdc4f2814a
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

Patch

diff --git a/tests/test-lock.py b/tests/test-lock.py
--- a/tests/test-lock.py
+++ b/tests/test-lock.py
@@ -80,9 +80,9 @@  class teststate(object):
 
     def _toexists(self, exists):
         if exists:
-            return 'exists'
+            return 'exist'
         else:
-            return 'not exists'
+            return 'not exist'
 
 class testlock(unittest.TestCase):
     def testlock(self):