Adding a test on IndexEntry 'mode' new attribute.

This commit is contained in:
Julien Miotte
2011-07-12 16:15:35 +02:00
parent d484edb293
commit 2093281110

View File

@@ -97,6 +97,15 @@ class IndexTest(utils.RepoTestCase):
#entries = [index[x] for x in xrange(n)]
#self.assertEqual(list(index), entries)
def test_mode(self):
"""
Testing that we can access an index entry mode.
"""
index = self.repo.index
hello_mode = index['hello.txt'].mode
self.assertEqual(hello_mode, 33188)
if __name__ == '__main__':
unittest.main()