示例#1
0
 def test_ignore_success(self):
     """This file shouldn't be ignored"""
     self.assertFalse(ignore('user/documents/test'))
示例#2
0
 def test_ignore_repo343_parent(self):
     """This path should be ignored, because it is the repo folder"""
     self.assertTrue(ignore('user/documents/repo343/test.py'))
     self.assertTrue(ignore('user/repo343/test/another/test.py'))
示例#3
0
 def test_ignore_file_type_extension(self):
     """This path should be ignored, because of the file type extension"""
     self.assertTrue(ignore('user/test/program.o'))
示例#4
0
 def test_ignore_dot(self):
     """This path should be ignored because of the '.' preceding it's name"""
     self.assertTrue(ignore('user/documents/.test'))
示例#5
0
 def test_ignore_dot_parent(self):
     """This path should be ignored because of the '.' preceding the name of
     one of it's parent folders."""
     self.assertTrue(ignore('user/documents/.hidden/foo/bar'))
示例#6
0
 def test_ignore_file_type_extension(self):
     """This path should be ignored, because of the file type extension"""
     self.assertTrue(ignore('/user/test/program.o'))
示例#7
0
 def test_ignore_repo343_parent(self):
     """This path should be ignored, because it is the repo folder"""
     self.assertTrue(ignore('/user/documents/repo343/test.py'))
     self.assertTrue(ignore('/user/repo343/test/another/test.py'))
示例#8
0
 def test_ignore_dot_parent(self):
     """This path should be ignored because of the '.' preceding the name of
     one of it's parent folders."""
     self.assertTrue(ignore('/user/documents/.hidden/foo/bar'))
示例#9
0
 def test_ignore_dot(self):
     """This path should be ignored because of the '.' preceding it's name"""
     self.assertTrue(ignore('/user/documents/.test'))
示例#10
0
 def test_ignore_success(self):
     """This file shouldn't be ignored"""
     self.assertFalse(ignore('/user/documents/test'))