Rev 210: Fixed indentation in tests. in http://bzr.daniel-watkins.co.uk/pqm/abstract-patch
Daniel Watkins
daniel at daniel-watkins.co.uk
Tue Jul 22 19:21:09 BST 2008
At http://bzr.daniel-watkins.co.uk/pqm/abstract-patch
------------------------------------------------------------
revno: 210
revision-id: daniel at daniel-watkins.co.uk-20080722181939-b4rupgy8j6a8hshu
parent: daniel at daniel-watkins.co.uk-20080722181915-2e90z3wentgvby5n
committer: Daniel Watkins <daniel at daniel-watkins.co.uk>
branch nick: abstract-patch
timestamp: Tue 2008-07-22 19:19:39 +0100
message:
Fixed indentation in tests.
-------------- next part --------------
=== modified file 'pqm/tests/test_pqm.py'
--- a/pqm/tests/test_pqm.py 2008-07-22 18:19:15 +0000
+++ b/pqm/tests/test_pqm.py 2008-07-22 18:19:39 +0000
@@ -369,10 +369,10 @@
def test_PatchCommand_valid_patch(self):
patch = ["=== modified file 'bar'",
- "--- old/bar 2008-07-20 16:06:44.000000000 +0100",
- "+++ new/bar 2008-07-20 16:06:48.000000000 +0100",
- "@@ -0,0 +1 @@",
- "+foo"]
+ "--- old/bar 2008-07-20 16:06:44.000000000 +0100",
+ "+++ new/bar 2008-07-20 16:06:48.000000000 +0100",
+ "@@ -0,0 +1 @@",
+ "+foo"]
command = self.get_patch_command(patch)
command.run()
self.assertFileEqual('foo\n', 'bar/foo/foo/bar')
@@ -392,10 +392,10 @@
def test_PatchCommand_absolute_path(self):
patch = ["=== modified file 'bar'",
- "--- /bar 2008-07-20 16:06:44.000000000 +0100",
- "+++ /bar 2008-07-20 16:06:48.000000000 +0100",
- "@@ -0,0 +1 @@",
- "+foo"]
+ "--- /bar 2008-07-20 16:06:44.000000000 +0100",
+ "+++ /bar 2008-07-20 16:06:48.000000000 +0100",
+ "@@ -0,0 +1 @@",
+ "+foo"]
command = self.get_patch_command(patch)
e = self.assertRaises(PQMException, command.run)
self.assertEqual("'Invalid absolute filename in patch: /bar 2008-07-20"
@@ -404,10 +404,10 @@
def test_PatchCommand_backreferencing_path(self):
patch = ["=== modified file 'bar'",
- "--- bar/.. 2008-07-20 16:06:44.000000000 +0100",
- "+++ bar/.. 2008-07-20 16:06:48.000000000 +0100",
- "@@ -0,0 +1 @@",
- "+foo"]
+ "--- bar/.. 2008-07-20 16:06:44.000000000 +0100",
+ "+++ bar/.. 2008-07-20 16:06:48.000000000 +0100",
+ "@@ -0,0 +1 @@",
+ "+foo"]
command = self.get_patch_command(patch)
e = self.assertRaises(PQMException, command.run)
self.assertEqual("'Invalid backreferencing filename in patch: bar/.."
More information about the bazaar-commits
mailing list