Show More
@@ -140,13 +140,13 class NodeBasicTest(unittest.TestCase): | |||
|
140 | 140 | |
|
141 | 141 | def test_file_node_is_executable(self): |
|
142 | 142 | node = FileNode('foobar', 'empty... almost', mode=0100755) |
|
143 |
self.assertTrue(node.is_executable |
|
|
143 | self.assertTrue(node.is_executable) | |
|
144 | 144 | |
|
145 | 145 | node = FileNode('foobar', 'empty... almost', mode=0100500) |
|
146 |
self.assertTrue(node.is_executable |
|
|
146 | self.assertTrue(node.is_executable) | |
|
147 | 147 | |
|
148 | 148 | node = FileNode('foobar', 'empty... almost', mode=0100644) |
|
149 |
self.assertFalse(node.is_executable |
|
|
149 | self.assertFalse(node.is_executable) | |
|
150 | 150 | |
|
151 | 151 | def test_mimetype(self): |
|
152 | 152 | py_node = FileNode('test.py') |
@@ -148,14 +148,14 class HgRepositoryGetDiffTest(Repository | |||
|
148 | 148 | def test_initial_commit_diff(self): |
|
149 | 149 | initial_rev = self.repo.revisions[0] |
|
150 | 150 | self.assertEqual(self.repo.get_diff(self.repo.EMPTY_CHANGESET, initial_rev), '''diff --git a/foobar b/foobar |
|
151 |
new file mode 100 |
|
|
151 | new file mode 100644 | |
|
152 | 152 | --- /dev/null |
|
153 | 153 | +++ b/foobar |
|
154 | 154 | @@ -0,0 +1,1 @@ |
|
155 | 155 | +foobar |
|
156 | 156 | \ No newline at end of file |
|
157 | 157 | diff --git a/foobar2 b/foobar2 |
|
158 |
new file mode 100 |
|
|
158 | new file mode 100644 | |
|
159 | 159 | --- /dev/null |
|
160 | 160 | +++ b/foobar2 |
|
161 | 161 | @@ -0,0 +1,1 @@ |
@@ -174,7 +174,7 new file mode 100755 | |||
|
174 | 174 | +FOOBAR |
|
175 | 175 | \ No newline at end of file |
|
176 | 176 | diff --git a/foobar3 b/foobar3 |
|
177 |
new file mode 100 |
|
|
177 | new file mode 100644 | |
|
178 | 178 | --- /dev/null |
|
179 | 179 | +++ b/foobar3 |
|
180 | 180 | @@ -0,0 +1,1 @@ |
@@ -185,7 +185,7 new file mode 100755 | |||
|
185 | 185 | def test_third_changeset_diff(self): |
|
186 | 186 | revs = self.repo.revisions |
|
187 | 187 | self.assertEqual(self.repo.get_diff(revs[1], revs[2]), '''diff --git a/foobar b/foobar |
|
188 |
deleted file mode 100 |
|
|
188 | deleted file mode 100644 | |
|
189 | 189 | --- a/foobar |
|
190 | 190 | +++ /dev/null |
|
191 | 191 | @@ -1,1 +0,0 @@ |
General Comments 0
You need to be logged in to leave comments.
Login now