~bzr-svn/bzr-svn/1.1

« back to all changes in this revision

Viewing changes to tests/test_changes.py

  • Committer: Jelmer Vernooij
  • Date: 2010-07-26 21:59:02 UTC
  • Revision ID: jelmer@samba.org-20100726215902-q6vfbjtn29bztwcy
Remove trailing whitespace.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Copyright (C) 2005-2009 Jelmer Vernooij <jelmer@samba.org>
2
 
 
 
2
 
3
3
# This program is free software; you can redistribute it and/or modify
4
4
# it under the terms of the GNU General Public License as published by
5
5
# the Free Software Foundation; either version 2 of the License, or
91
91
 
92
92
    def test_parent_rename(self):
93
93
        self.assertEquals([('tags/2.5-M2', 'geotools/tags/2.5-M2', 5617)],
94
 
            list(apply_reverse_changes(['trunk/geotools2', 'tags/2.5-M2', 'trunk'], 
 
94
            list(apply_reverse_changes(['trunk/geotools2', 'tags/2.5-M2', 'trunk'],
95
95
                {'tags': (u'A', 'geotools/tags', 5617), 'geotools/tags': (u'D', None, -1)}))
96
96
            )
97
97
 
98
98
    def test_simple_rename(self):
99
99
        self.assertEquals([("newname", "oldname", 2)],
100
 
            list(apply_reverse_changes(["newname"], 
 
100
            list(apply_reverse_changes(["newname"],
101
101
                {"newname": (u"A", "oldname", 2)})))
102
102
 
103
103
    def test_simple_rename_nonexistant(self):
104
104
        self.assertEquals([],
105
 
            list(apply_reverse_changes([], 
 
105
            list(apply_reverse_changes([],
106
106
                {"newname": (u"A", "oldname", 2)})))
107
107
 
108
108
    def test_modify(self):
109
109
        self.assertEquals([],
110
 
            list(apply_reverse_changes(["somename"], 
 
110
            list(apply_reverse_changes(["somename"],
111
111
                {"somename": (u"M", None, -1)})))
112
112
 
113
113
    def test_delete(self):
114
114
        self.assertEquals([("somename/bloe", None, -1)],
115
 
            list(apply_reverse_changes(["somename/bloe"], 
 
115
            list(apply_reverse_changes(["somename/bloe"],
116
116
                {"somename": (u"D", None, -1)})))
117
117
 
118
118
    def test_add(self):
119
119
        self.assertEquals([],
120
 
            list(apply_reverse_changes(["somename"], 
 
120
            list(apply_reverse_changes(["somename"],
121
121
                {"somename": (u"A", None, -1)})))
122
122
 
123
123
    def test_chaco(self):