~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_bad_files.py

  • Committer: Robert Collins
  • Date: 2006-01-05 22:30:59 UTC
  • mto: (1534.1.4 integration)
  • mto: This revision was merged to the branch mainline in revision 1536.
  • Revision ID: robertc@robertcollins.net-20060105223059-a8b64f7b47cf12fb
 * bzrlib.osutils.safe_unicode now exists to provide parameter coercion
   for functions that need unicode strings. (Robert Collins)

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
"""Tests being able to ignore mad filetypes.
19
19
"""
20
20
 
21
 
from bzrlib.selftest import TestCaseInTempDir
 
21
from bzrlib.tests import TestCaseInTempDir
22
22
from bzrlib.errors import BadFileKindError
23
23
import os
24
24
 
40
40
        from bzrlib.add import smart_add
41
41
        from bzrlib.branch import Branch
42
42
 
43
 
        b = Branch.initialize('.')
 
43
        b = Branch.initialize(u'.')
44
44
 
45
45
        self.build_tree(['one', 'two', 'three'])
46
 
        smart_add('.')
 
46
        smart_add(u'.')
47
47
        commit(b, "Commit one", rev_id="a@u-0-0")
48
48
        self.build_tree(['four'])
49
 
        smart_add('.')
 
49
        smart_add(u'.')
50
50
        commit(b, "Commit two", rev_id="a@u-0-1")
51
51
        self.build_tree(['five'])
52
 
        smart_add('.')
 
52
        smart_add(u'.')
53
53
        commit(b, "Commit three", rev_id="a@u-0-2")
54
54
 
55
55
        # We should now have a few files, lets try to
73
73
        
74
74
        # Make sure smart_add can handle having a bogus
75
75
        # file in the way
76
 
        smart_add('.')
 
76
        smart_add(u'.')
77
77
        verify_status(self, b,
78
78
                          ['added:\n',
79
79
                           '  six\n',