Public Member Functions | Public Attributes
webtest.forms.Upload Class Reference

List of all members.

Public Member Functions

def __init__
def __iter__
def __repr__

Public Attributes

 content
 content_type
 filename

Detailed Description

A file to upload::

    >>> Upload('filename.txt', 'data', 'application/octet-stream')
    <Upload "filename.txt">
    >>> Upload('filename.txt', 'data')
    <Upload "filename.txt">
    >>> Upload("README.txt")
    <Upload "README.txt">

:param filename: Name of the file to upload.
:param content: Contents of the file.
:param content_type: MIME type of the file.

Definition at line 16 of file forms.py.


Constructor & Destructor Documentation

def webtest.forms.Upload.__init__ (   self,
  filename,
  content = None,
  content_type = None 
)

Definition at line 33 of file forms.py.


Member Function Documentation

Definition at line 38 of file forms.py.

Definition at line 46 of file forms.py.


Member Data Documentation

Definition at line 33 of file forms.py.

Definition at line 33 of file forms.py.

Definition at line 33 of file forms.py.


The documentation for this class was generated from the following file:


webtest
Author(s): AlexV
autogenerated on Sat Mar 25 2017 03:32:05