Ejemplo n.º 1
0
 def test_ignore_success(self):
     """This file shouldn't be ignored"""
     self.assertFalse(ignore('user/documents/test'))
Ejemplo n.º 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'))
Ejemplo n.º 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'))
Ejemplo n.º 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'))
Ejemplo n.º 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'))
Ejemplo n.º 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'))
Ejemplo n.º 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'))
Ejemplo n.º 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'))
Ejemplo n.º 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'))
Ejemplo n.º 10
0
 def test_ignore_success(self):
     """This file shouldn't be ignored"""
     self.assertFalse(ignore('/user/documents/test'))