~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/selftest/test_bad_files.py

  • Committer: Aaron Bentley
  • Date: 2005-09-21 15:33:23 UTC
  • mto: (1185.1.37)
  • mto: This revision was merged to the branch mainline in revision 1390.
  • Revision ID: abentley@panoramicfeedback.com-20050921153323-5db674d572d7649d
Fixed bug in distance-from-root graph operation

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.tests import TestCaseInTempDir
 
21
from bzrlib.selftest 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(u'.')
 
43
        b = Branch.initialize('.')
44
44
 
45
45
        self.build_tree(['one', 'two', 'three'])
46
 
        smart_add(u'.')
 
46
        smart_add('.')
47
47
        commit(b, "Commit one", rev_id="a@u-0-0")
48
48
        self.build_tree(['four'])
49
 
        smart_add(u'.')
 
49
        smart_add('.')
50
50
        commit(b, "Commit two", rev_id="a@u-0-1")
51
51
        self.build_tree(['five'])
52
 
        smart_add(u'.')
 
52
        smart_add('.')
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(u'.')
 
76
        smart_add('.')
77
77
        verify_status(self, b,
78
78
                          ['added:\n',
79
79
                           '  six\n',
89
89
 
90
90
        # We should raise an error if we are adding a bogus file
91
91
        # Is there a way to test the actual error that should be raised?
92
 
        self.run_bzr('add', 'a-fifo', retcode=3)
 
92
        self.run_bzr('add', 'a-fifo', retcode=1)
93
93