/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_patches.py

  • Committer: Martin Pool
  • Date: 2008-04-24 07:37:55 UTC
  • mto: This revision was merged to the branch mainline in revision 3415.
  • Revision ID: mbp@sourcefrog.net-20080424073755-0804cx05t4qb2672
Make PatchesTester use bzrlib TestCase base

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# Copyright (C) 2004 - 2006 Aaron Bentley, Canonical Ltd
 
1
# Copyright (C) 2004 - 2008 Aaron Bentley, Canonical Ltd
2
2
# <aaron.bentley@utoronto.ca>
3
3
#
4
4
# This program is free software; you can redistribute it and/or modify
16
16
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
17
 
18
18
 
19
 
import unittest
20
19
import os.path
21
20
 
 
21
from bzrlib.tests import TestCase
 
22
 
22
23
from bzrlib.iterablefile import IterableFile
23
24
from bzrlib.patches import (MalformedLine, 
24
25
                            MalformedHunkHeader, 
35
36
                            parse_patches)
36
37
 
37
38
 
38
 
# XXX: Is there a good reason this uses unittest's test case rather than the
39
 
# bzrlib one?
 
39
class PatchesTester(TestCase):
40
40
 
41
 
class PatchesTester(unittest.TestCase):
42
41
    def datafile(self, filename):
43
42
        data_path = os.path.join(os.path.dirname(__file__), 
44
43
                                 "test_patches_data", filename)