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

    \label{cssutils:tests:basetest}
base class for all tests

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



\textbf{Date:} \$LastChangedDate: 2007-11-01 22:39:10 +0100 (Do, 01 Nov 2007) \$



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




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

    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.basetest \textit{(module)}!cssutils.tests.basetest.BaseTestCase \textit{(class)}|(}
\subsection{Class BaseTestCase}

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

\textbf{Known Subclasses:}
cssutils.tests.test\_cssutils.CSSutilsTestCase,
    cssutils.tests.test\_cssrule.CSSRuleTestCase,
    cssutils.tests.test\_selector.SelectorTestCase,
    cssutils.tests.test\_serialize.CSSSerializerTestCase,
    cssutils.tests.test\_cssproperties.CSSPropertiesTestCase,
    cssutils.tests.test\_scripts\_csscombine.CSSCombine,
    cssutils.tests.test\_cssrulelist.CSSRuleListTestCase,
    cssutils.tests.test\_cssvalue.CSSPrimitiveValueTestCase,
    cssutils.tests.test\_cssvalue.CSSValueListTestCase,
    cssutils.tests.test\_cssvalue.CSSValueTestCase,
    cssutils.tests.test\_util.BaseTestCase,
    cssutils.tests.test\_util.ListSeqTestCase,
    cssutils.tests.test\_mediaquery.MediaQueryTestCase,
    cssutils.tests.test\_cssstyledeclaration.CSSStyleDeclarationTestCase,
    cssutils.tests.test\_parse.CSSStyleSheetTestCase,
    cssutils.tests.test\_tokenize2.TokenizerTestCase,
    cssutils.tests.test\_property.PropertyTestCase,
    cssutils.tests.test\_cssstylesheet.CSSStyleSheetTestCase,
    cssutils.tests.test\_selectorlist.SelectorListTestCase,
    cssutils.tests.test\_medialist.MediaListTestCase


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

  \subsubsection{Methods}

    \label{cssutils:tests:basetest:BaseTestCase:assertRaisesEx}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.basetest \textit{(module)}!cssutils.tests.basetest.BaseTestCase \textit{(class)}!cssutils.tests.basetest.BaseTestCase.assertRaisesEx \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{assertRaisesEx}(\textit{self}, \textit{exception}, \textit{callable}, *\textit{args}, **\textit{kwargs})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    from http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/307970

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

    \label{cssutils:tests:basetest:BaseTestCase:assertRaisesMsg}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.basetest \textit{(module)}!cssutils.tests.basetest.BaseTestCase \textit{(class)}!cssutils.tests.basetest.BaseTestCase.assertRaisesMsg \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{assertRaisesMsg}(\textit{self}, \textit{excClass}, \textit{msg}, \textit{callableObj}, *\textit{args}, **\textit{kwargs})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    Just like unittest.TestCase.assertRaises, but checks that the message 
    is right too.

    Usage:

\begin{alltt}
   self.assertRaisesMsg(
       MyException, "Exception message",
       my\_function, (arg1, arg2)
       )\end{alltt}

    from http://www.nedbatchelder.com/blog/200609.html\#e20060905T064418

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

    \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:basetest:BaseTestCase:do_equal_p}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.basetest \textit{(module)}!cssutils.tests.basetest.BaseTestCase \textit{(class)}!cssutils.tests.basetest.BaseTestCase.do\_equal\_p \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_equal\_p}(\textit{self}, \textit{tests}, \textit{att}={\tt \texttt{'}\texttt{cssText}\texttt{'}}, \textit{debug}={\tt False}, \textit{raising}={\tt True})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    if raising self.p is used for parsing, else self.pf

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

    \label{cssutils:tests:basetest:BaseTestCase:do_raise_p}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.basetest \textit{(module)}!cssutils.tests.basetest.BaseTestCase \textit{(class)}!cssutils.tests.basetest.BaseTestCase.do\_raise\_p \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_raise\_p}(\textit{self}, \textit{tests}, \textit{debug}={\tt False}, \textit{raising}={\tt True})

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

    \label{cssutils:tests:basetest:BaseTestCase:do_equal_r}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.basetest \textit{(module)}!cssutils.tests.basetest.BaseTestCase \textit{(class)}!cssutils.tests.basetest.BaseTestCase.do\_equal\_r \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_equal\_r}(\textit{self}, \textit{tests}, \textit{att}={\tt \texttt{'}\texttt{cssText}\texttt{'}}, \textit{debug}={\tt False})

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

    \label{cssutils:tests:basetest:BaseTestCase:do_raise_r}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.basetest \textit{(module)}!cssutils.tests.basetest.BaseTestCase \textit{(class)}!cssutils.tests.basetest.BaseTestCase.do\_raise\_r \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{do\_raise\_r}(\textit{self}, \textit{tests}, \textit{att}={\tt \texttt{'}\texttt{\_setCssText}\texttt{'}}, \textit{debug}={\tt False})

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


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