Uploaded Test files
This commit is contained in:
parent
f584ad9d97
commit
2e81cb7d99
16627 changed files with 2065359 additions and 102444 deletions
|
@ -0,0 +1,26 @@
|
|||
# Copyright (c) Jupyter Development Team.
|
||||
# Distributed under the terms of the Modified BSD License.
|
||||
|
||||
from unittest import TestCase
|
||||
|
||||
from traitlets import TraitError
|
||||
|
||||
from ipywidgets import FileUpload
|
||||
|
||||
|
||||
class TestFileUpload(TestCase):
|
||||
|
||||
def test_construction(self):
|
||||
uploader = FileUpload()
|
||||
# Default
|
||||
assert uploader.accept == ''
|
||||
assert not uploader.multiple
|
||||
assert not uploader.disabled
|
||||
|
||||
def test_construction_with_params(self):
|
||||
uploader = FileUpload(accept='.txt',
|
||||
multiple=True,
|
||||
disabled=True)
|
||||
assert uploader.accept == '.txt'
|
||||
assert uploader.multiple
|
||||
assert uploader.disabled
|
Loading…
Add table
Add a link
Reference in a new issue