[Pkg-bazaar-commits] ./bzr/unstable r781: - start of simple test for unknown-file reporting

Martin Pool mbp at sourcefrog.net
Fri Apr 10 08:13:43 UTC 2009


------------------------------------------------------------
revno: 781
committer: Martin Pool <mbp at sourcefrog.net>
timestamp: Fri 2005-06-24 21:07:10 +1000
message:
  - start of simple test for unknown-file reporting
modified:
  bzrlib/selftest/whitebox.py
-------------- next part --------------
=== modified file 'bzrlib/selftest/whitebox.py'
--- a/bzrlib/selftest/whitebox.py	2005-06-24 10:42:47 +0000
+++ b/bzrlib/selftest/whitebox.py	2005-06-24 11:07:10 +0000
@@ -8,6 +8,17 @@
 from bzrlib.errors import NotBranchError, NotVersionedError
 
 
+class Unknowns(InTempDir):
+    def runTest(self):
+        b = Branch('.', init=True)
+
+        self.build_tree(['hello.txt',
+                         'hello.txt~'])
+
+        self.assertEquals(list(b.unknowns()),
+                          ['hello.txt'])
+
+
 class Revert(InTempDir):
     """Test selected-file revert"""
     def runTest(self):



More information about the Pkg-bazaar-commits mailing list