def test_should_upload(self): """should_upload should return True""" s3d = Deploy(self.site, self.config) s3d.skip_upload = ["foo", "bar"] s3d.changed = ["asdf/foo", "bazbaz/zap"] self.assertTrue(s3d.should_upload)
def test_should_upload_skip(self): """should skip uploading""" s3d = Deploy(self.site, self.config) s3d.skip_upload = ["/foo/foo", "bar"] s3d.changed = ["/foo/foo"] self.assertFalse(s3d.should_upload)