예제 #1
0
    def test_get_copy_ignore_globs(self):
        instance = Template('/foo/bar')
        instance.update_copy_ignore_globs(['*.png', '*.gif'])

        self.assertEqual(instance.get_copy_ignore_globs(), [
            '.git',
            '.hg',
            '.svn',
            '.DS_Store',
            'Thumbs.db',
            '*.png',
            '*.gif'
        ])
예제 #2
0
    def test_get_copy_ignore_globs_empty_list(self):
        instance = Template('/foo/bar')
        del(instance.copy_ignore_globs)

        self.assertEqual(instance.get_copy_ignore_globs(), [])