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