tests: support multiple caps in notcapable
authorPeter Arrenbrecht <peter.arrenbrecht@gmail.com>
Mon, 23 May 2011 20:31:04 +0200
changeset 14409 9ff996ba00b4
parent 14408 054da1e0afbe
child 14410 afeb14a8128a
tests: support multiple caps in notcapable
tests/notcapable
--- a/tests/notcapable	Sun May 22 16:10:03 2011 +0300
+++ b/tests/notcapable	Mon May 23 20:31:04 2011 +0200
@@ -10,7 +10,7 @@
 def extsetup():
     extensions.wrapfunction(repo.repository, 'capable', wrapper)
 def wrapper(orig, self, name, *args, **kwargs):
-    if name == '$CAP':
+    if name in '$CAP'.split(' '):
         return False
     return orig(self, name, *args, **kwargs)
 EOF