%
% API Documentation for cssutils
% Module cssutils.tests.test_cssstyledeclaration
%
% Generated by epydoc 3.0.1
% [Fri Feb 01 19:05:22 2008]
%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                          Module Description                           %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}|(}
\section{Module cssutils.tests.test\_cssstyledeclaration}

    \label{cssutils:tests:test_cssstyledeclaration}
Testcases for cssutils.css.cssstyledelaration.CSSStyleDeclaration.

\textbf{Version:} \$LastChangedRevision: 898 \$



\textbf{Date:} \$LastChangedDate: 2008-01-20 14:53:16 +0100 (So, 20 Jan 2008) \$



\textbf{Author:} \$LastChangedBy: cthedot \$




%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                           Class Description                           %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}|(}
\subsection{Class CSSStyleDeclarationTestCase}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase}
\begin{tabular}{cccccccccc}
% Line for object, linespec=[False, False, False]
\multicolumn{2}{r}{\settowidth{\BCL}{object}\multirow{2}{\BCL}{object}}
&&
&&
&&
  \\\cline{3-3}
  &&\multicolumn{1}{c|}{}
&&
&&
&&
  \\
% Line for unittest.TestCase, linespec=[False, False]
\multicolumn{4}{r}{\settowidth{\BCL}{unittest.TestCase}\multirow{2}{\BCL}{unittest.TestCase}}
&&
&&
  \\\cline{5-5}
  &&&&\multicolumn{1}{c|}{}
&&
&&
  \\
% Line for cssutils.tests.basetest.BaseTestCase, linespec=[False]
\multicolumn{6}{r}{\settowidth{\BCL}{cssutils.tests.basetest.BaseTestCase}\multirow{2}{\BCL}{cssutils.tests.basetest.BaseTestCase}}
&&
  \\\cline{7-7}
  &&&&&&\multicolumn{1}{c|}{}
&&
  \\
&&&&&&\multicolumn{2}{l}{\textbf{cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase}}
\end{tabular}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                                Methods                                %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Methods}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{setUp}(\textit{self})

\setlength{\parskip}{2ex}
    Hook method for setting up the test fixture before exercising it.

\setlength{\parskip}{1ex}
      Overrides: unittest.TestCase.setUp 	extit{(inherited documentation)}

    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_init}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_init \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_init}(\textit{CSSStyleDeclaration})

\setlength{\parskip}{2ex}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test__contains__}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_\_contains\_\_ \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_\_contains\_\_}(\textit{CSSStyleDeclaration}, \textit{nameOrProperty})

\setlength{\parskip}{2ex}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test__iter__item}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_\_iter\_\_item \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_\_iter\_\_item}(\textit{self})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSStyleDeclaration.\_\_iter\_\_ and .item

\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_parse}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_parse \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_parse}(\textit{self})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSStyleDeclaration parse

\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_serialize}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_serialize \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_serialize}(\textit{self})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSStyleDeclaration serialize

\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_cssText}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_cssText \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_cssText}(\textit{self})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSStyleDeclaration.cssText

\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_getCssText}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_getCssText \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_getCssText}(\textit{CSSStyleDeclaration}, \textit{separator})

\setlength{\parskip}{2ex}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_parentRule}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_parentRule \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_parentRule}(\textit{self})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSStyleDeclaration.parentRule

\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_getProperty}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_getProperty \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_getProperty}(\textit{self})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSStyleDeclaration.getProperty

\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_getProperties}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_getProperties \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_getProperties}(\textit{CSSStyleDeclaration})

\setlength{\parskip}{2ex}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_getPropertyCSSValue}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_getPropertyCSSValue \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_getPropertyCSSValue}(\textit{CSSStyleDeclaration})

\setlength{\parskip}{2ex}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_getPropertyValue}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_getPropertyValue \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_getPropertyValue}(\textit{CSSStyleDeclaration})

\setlength{\parskip}{2ex}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_getPropertyPriority}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_getPropertyPriority \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_getPropertyPriority}(\textit{CSSStyleDeclaration})

\setlength{\parskip}{2ex}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_removeProperty}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_removeProperty \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_removeProperty}(\textit{CSSStyleDeclaration})

\setlength{\parskip}{2ex}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_setProperty}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_setProperty \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_setProperty}(\textit{CSSStyleDeclaration})

\setlength{\parskip}{2ex}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_length}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_length \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_length}(\textit{self})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSStyleDeclaration.length

\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_nameParameter}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_nameParameter \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_nameParameter}(\textit{CSSStyleDeclaration}, \textit{name})

\setlength{\parskip}{2ex}
\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_css2properties}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_css2properties \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_css2properties}(\textit{self})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSStyleDeclaration.\$css2property get set del

\setlength{\parskip}{1ex}
    \end{boxedminipage}

    \label{cssutils:tests:test_cssstyledeclaration:CSSStyleDeclarationTestCase:test_reprANDstr}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase.test\_reprANDstr \textit{(method)}}

    \vspace{0.5ex}

\hspace{.8\funcindent}\begin{boxedminipage}{\funcwidth}

    \raggedright \textbf{test\_reprANDstr}(\textit{self})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSStyleDeclaration.\_\_repr\_\_(), .\_\_str\_\_()

\setlength{\parskip}{1ex}
    \end{boxedminipage}


\large{\textbf{\textit{Inherited from cssutils.tests.basetest.BaseTestCase\textit{(Section \ref{cssutils:tests:basetest:BaseTestCase})}}}}

\begin{quote}
assertRaisesEx(), assertRaisesMsg(), do\_equal\_p(), do\_equal\_r(), do\_raise\_p(), do\_raise\_r()
\end{quote}

\large{\textbf{\textit{Inherited from unittest.TestCase}}}

\begin{quote}
\_\_call\_\_(), \_\_init\_\_(), \_\_repr\_\_(), \_\_str\_\_(), assertAlmostEqual(), assertAlmostEquals(), assertEqual(), assertEquals(), assertFalse(), assertNotAlmostEqual(), assertNotAlmostEquals(), assertNotEqual(), assertNotEquals(), assertRaises(), assertTrue(), assert\_(), countTestCases(), debug(), defaultTestResult(), fail(), failIf(), failIfAlmostEqual(), failIfEqual(), failUnless(), failUnlessAlmostEqual(), failUnlessEqual(), failUnlessRaises(), id(), run(), shortDescription(), tearDown()
\end{quote}

\large{\textbf{\textit{Inherited from object}}}

\begin{quote}
\_\_delattr\_\_(), \_\_getattribute\_\_(), \_\_hash\_\_(), \_\_new\_\_(), \_\_reduce\_\_(), \_\_reduce\_ex\_\_(), \_\_setattr\_\_()
\end{quote}

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                              Properties                               %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Properties}

    \vspace{-1cm}
\hspace{\varindent}\begin{longtable}{|p{\varnamewidth}|p{\vardescrwidth}|l}
\cline{1-2}
\cline{1-2} \centering \textbf{Name} & \centering \textbf{Description}& \\
\cline{1-2}
\endhead\cline{1-2}\multicolumn{3}{r}{\small\textit{continued on next page}}\\\endfoot\cline{1-2}
\endlastfoot\multicolumn{2}{|l|}{\textit{Inherited from object}}\\
\multicolumn{2}{|p{\varwidth}|}{\raggedright \_\_class\_\_}\\
\cline{1-2}
\end{longtable}

    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}!cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase \textit{(class)}|)}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_cssstyledeclaration \textit{(module)}|)}
