~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-08-08 23:19:29 UTC
  • mfrom: (1884 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1912.
  • Revision ID: robertc@robertcollins.net-20060808231929-4e3e298190214b3a
current status

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 import ignores
21
22
from bzrlib.tests import TestCaseWithTransport
22
23
from bzrlib.errors import BadFileKindError
23
24
import os
34
35
 
35
36
class TestBadFiles(TestCaseWithTransport):
36
37
    
37
 
    def test_bad_files(self): 
 
38
    def test_bad_files(self):
38
39
        """Test that bzr will ignore files it doesn't like"""
39
40
        from bzrlib.add import smart_add_tree
40
41
        from bzrlib.branch import Branch
58
59
 
59
60
        # We can only continue if we have mkfifo
60
61
        if not hasattr(os, 'mkfifo'):
 
62
            # TODO: Ultimately this should be TestSkipped
 
63
            # or PlatformDeficiency
61
64
            return
62
65
 
 
66
        # Ignore the .bazaar/ home directory that is created
 
67
        ignores._set_user_ignores(['./.bazaar'])
 
68
 
63
69
        # status with nothing
64
70
        verify_status(self, wt, [])
65
71