def test_ignore_success(self): """This file shouldn't be ignored""" self.assertFalse(ignore('user/documents/test'))
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'))
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'))
def test_ignore_dot(self): """This path should be ignored because of the '.' preceding it's name""" self.assertTrue(ignore('user/documents/.test'))
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'))
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'))
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'))
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'))
def test_ignore_dot(self): """This path should be ignored because of the '.' preceding it's name""" self.assertTrue(ignore('/user/documents/.test'))
def test_ignore_success(self): """This file shouldn't be ignored""" self.assertFalse(ignore('/user/documents/test'))