~jelmer/bzr-svn/0.6

« back to all changes in this revision

Viewing changes to tests/test_changes.py

  • Committer: Jelmer Vernooij
  • Date: 2009-07-27 00:55:02 UTC
  • Revision ID: jelmer@samba.org-20090727005502-fhf64bq4vtun8xqb
Formatting fixes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
13
13
# You should have received a copy of the GNU General Public License
14
14
# along with this program.  If not, see <http://www.gnu.org/licenses/>.
15
15
 
 
16
"""Tests for the changes module."""
 
17
 
16
18
from bzrlib.tests import TestCase
17
19
 
18
20
from bzrlib.plugins.svn.changes import (
23
25
    )
24
26
 
25
27
class PathIsChildTests(TestCase):
 
28
 
26
29
    def test_both_empty(self):
27
30
        self.assertTrue(path_is_child("", ""))
28
31
 
40
43
 
41
44
 
42
45
class FindPrevLocationTests(TestCase):
 
46
 
43
47
    def test_simple_prev_changed(self):
44
48
        self.assertEquals(("foo", 1), find_prev_location({"foo": ("M", None, -1)}, "foo", 2))
45
49
 
63
67
 
64
68
 
65
69
class ChangesRootTests(TestCase):
 
70
 
66
71
    def test_empty(self):
67
72
        self.assertEquals(None, changes_root([]))
68
73