%
% API Documentation for cssutils
% Module cssutils.tests.test_csscharsetrule
%
% 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\_csscharsetrule \textit{(module)}|(}
\section{Module cssutils.tests.test\_csscharsetrule}

    \label{cssutils:tests:test_csscharsetrule}
testcases for cssutils.css.CSSCharsetRule

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



\textbf{Date:} \$LastChangedDate: 2008-01-19 22:58:52 +0100 (Sa, 19 Jan 2008) \$



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




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

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

    \label{cssutils:tests:test_csscharsetrule:CSSCharsetRuleTestCase}
\begin{tabular}{cccccccccccc}
% Line for object, linespec=[False, 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, 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, False]
\multicolumn{6}{r}{\settowidth{\BCL}{cssutils.tests.basetest.BaseTestCase}\multirow{2}{\BCL}{cssutils.tests.basetest.BaseTestCase}}
&&
&&
  \\\cline{7-7}
  &&&&&&\multicolumn{1}{c|}{}
&&
&&
  \\
% Line for cssutils.tests.test\_cssrule.CSSRuleTestCase, linespec=[False]
\multicolumn{8}{r}{\settowidth{\BCL}{cssutils.tests.test\_cssrule.CSSRuleTestCase}\multirow{2}{\BCL}{cssutils.tests.test\_cssrule.CSSRuleTestCase}}
&&
  \\\cline{9-9}
  &&&&&&&&\multicolumn{1}{c|}{}
&&
  \\
&&&&&&&&\multicolumn{2}{l}{\textbf{cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase}}
\end{tabular}


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

  \subsubsection{Methods}

    \vspace{0.5ex}

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

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

\setlength{\parskip}{2ex}
    OVERWRITE! self.r is the rule self.rRO the readonly rule relf.r\_type 
    the type as defined in CSSRule

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

    \end{boxedminipage}

    \vspace{0.5ex}

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

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

\setlength{\parskip}{2ex}
    CSSRule.type and init

\setlength{\parskip}{1ex}
      Overrides: cssutils.tests.test\_cssrule.CSSRuleTestCase.test\_init

    \end{boxedminipage}

    \label{cssutils:tests:test_csscharsetrule:CSSCharsetRuleTestCase:test_InvalidModificationErr}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_csscharsetrule \textit{(module)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase \textit{(class)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase.test\_InvalidModificationErr \textit{(method)}}

    \vspace{0.5ex}

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

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

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSCharsetRule InvalidModificationErr

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

    \label{cssutils:tests:test_csscharsetrule:CSSCharsetRuleTestCase:test_init_encoding}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_csscharsetrule \textit{(module)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase \textit{(class)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase.test\_init\_encoding \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{test\_init\_encoding}(\textit{CSSCharsetRule}, \textit{encoding})

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

    \label{cssutils:tests:test_csscharsetrule:CSSCharsetRuleTestCase:test_encoding}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_csscharsetrule \textit{(module)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase \textit{(class)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase.test\_encoding \textit{(method)}}

    \vspace{0.5ex}

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

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

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSSCharsetRule.encoding

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

    \label{cssutils:tests:test_csscharsetrule:CSSCharsetRuleTestCase:test_cssText}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_csscharsetrule \textit{(module)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase \textit{(class)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase.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}
    CSSCharsetRule.cssText

    setting cssText is ok to use @CHARSET or other but a file using parse 
    MUST use ``@charset "ENCODING";``

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

    \label{cssutils:tests:test_csscharsetrule:CSSCharsetRuleTestCase:test_repr}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_csscharsetrule \textit{(module)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase \textit{(class)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase.test\_repr \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{test\_repr}(\textit{CSSCharsetRule})

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

    \label{cssutils:tests:test_csscharsetrule:CSSCharsetRuleTestCase:test_reprANDstr}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_csscharsetrule \textit{(module)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase \textit{(class)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase.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}
    CSSCharsetRule.\_\_repr\_\_(), .\_\_str\_\_()

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


\large{\textbf{\textit{Inherited from cssutils.tests.test\_cssrule.CSSRuleTestCase\textit{(Section \ref{cssutils:tests:test_cssrule:CSSRuleTestCase})}}}}

\begin{quote}
test\_readonly()
\end{quote}

\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\_csscharsetrule \textit{(module)}!cssutils.tests.test\_csscharsetrule.CSSCharsetRuleTestCase \textit{(class)}|)}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_csscharsetrule \textit{(module)}|)}
