tests/test-manifest.py
changeset 24495 d2a3a2808974
parent 24468 016b71ea7dc7
child 24549 bcf0de51326e
--- a/tests/test-manifest.py	Sat Mar 28 11:19:34 2015 +0100
+++ b/tests/test-manifest.py	Mon Mar 30 10:43:52 2015 -0700
@@ -250,9 +250,13 @@
         self.assertEqual(HUGE_MANIFEST_ENTRIES, len(m))
         self.assertEqual(len(m), len(list(m)))
 
-    def testIntersectFiles(self):
+    def testMatches(self):
         m = parsemanifest(A_HUGE_MANIFEST)
-        m2 = m.intersectfiles(['file1', 'file200', 'file300'])
+
+        match = matchmod.match('/', '',
+                ['file1', 'file200', 'file300'], exact=True)
+        m2 = m.matches(match)
+
         w = ('file1\0%sx\n'
              'file200\0%sl\n'
              'file300\0%s\n') % (HASH_2, HASH_1, HASH_1)