aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcin Kuzminski <marcin@python-works.com>2013-05-11 00:09:29 +0200
committerMarcin Kuzminski <marcin@python-works.com>2013-05-11 00:09:29 +0200
commit1c63c7fe7b159aae6ea7b047380227e08e1ae026 (patch)
tree768733a9c1a15c0d37da8f8d2ad5365ce56d603d
parent5766d3bb4509237cdc87071c7f3a8f9eaf6df008 (diff)
downloadrhodecode-1c63c7fe7b159aae6ea7b047380227e08e1ae026.tar.gz
fixed VCS tests after executable big issue was fixed
--HG-- extra : source : dbe9a08b2bcfb73a7dafac02ae0885bba9a698e7
-rw-r--r--rhodecode/tests/vcs/test_nodes.py6
-rw-r--r--rhodecode/tests/vcs/test_repository.py8
2 files changed, 7 insertions, 7 deletions
diff --git a/rhodecode/tests/vcs/test_nodes.py b/rhodecode/tests/vcs/test_nodes.py
index 59922129..50aa5d0a 100644
--- a/rhodecode/tests/vcs/test_nodes.py
+++ b/rhodecode/tests/vcs/test_nodes.py
@@ -140,13 +140,13 @@ class NodeBasicTest(unittest.TestCase):
def test_file_node_is_executable(self):
node = FileNode('foobar', 'empty... almost', mode=0100755)
- self.assertTrue(node.is_executable())
+ self.assertTrue(node.is_executable)
node = FileNode('foobar', 'empty... almost', mode=0100500)
- self.assertTrue(node.is_executable())
+ self.assertTrue(node.is_executable)
node = FileNode('foobar', 'empty... almost', mode=0100644)
- self.assertFalse(node.is_executable())
+ self.assertFalse(node.is_executable)
def test_mimetype(self):
py_node = FileNode('test.py')
diff --git a/rhodecode/tests/vcs/test_repository.py b/rhodecode/tests/vcs/test_repository.py
index de7fcd0d..6ec68499 100644
--- a/rhodecode/tests/vcs/test_repository.py
+++ b/rhodecode/tests/vcs/test_repository.py
@@ -148,14 +148,14 @@ class HgRepositoryGetDiffTest(RepositoryGetDiffTest, unittest.TestCase):
def test_initial_commit_diff(self):
initial_rev = self.repo.revisions[0]
self.assertEqual(self.repo.get_diff(self.repo.EMPTY_CHANGESET, initial_rev), '''diff --git a/foobar b/foobar
-new file mode 100755
+new file mode 100644
--- /dev/null
+++ b/foobar
@@ -0,0 +1,1 @@
+foobar
\ No newline at end of file
diff --git a/foobar2 b/foobar2
-new file mode 100755
+new file mode 100644
--- /dev/null
+++ b/foobar2
@@ -0,0 +1,1 @@
@@ -174,7 +174,7 @@ new file mode 100755
+FOOBAR
\ No newline at end of file
diff --git a/foobar3 b/foobar3
-new file mode 100755
+new file mode 100644
--- /dev/null
+++ b/foobar3
@@ -0,0 +1,1 @@
@@ -185,7 +185,7 @@ new file mode 100755
def test_third_changeset_diff(self):
revs = self.repo.revisions
self.assertEqual(self.repo.get_diff(revs[1], revs[2]), '''diff --git a/foobar b/foobar
-deleted file mode 100755
+deleted file mode 100644
--- a/foobar
+++ /dev/null
@@ -1,1 +0,0 @@