Exemple #1
0
 def test_is_exclude_file(self):
     builder = Builder('test.zip')
     eq_(builder.is_exclude_file('test.zip'), True)
     eq_(builder.is_exclude_file('foo.txt'), False)
     builder.is_exclude = Mock(return_value=True)
     eq_(builder.is_exclude_file('foo.txt'), True)
Exemple #2
0
 def test_is_exclude(self):
     builder = Builder('test.zip', exclude=['^\.lamvery\.yml$'])
     eq_(builder.is_exclude('foo.txt'), False)
     eq_(builder.is_exclude('.lamvery.yml'), True)