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

    \label{cssutils:tests:test_tokenize2}
testcases for new cssutils.tokenize.Tokenizer

TODO:

\begin{alltt}
   - escape ends with explicit space but 
as single space
   - ur'"""': [('STRING', ur'"""', 1, 1)],
   - font-face with escaped "-"\end{alltt}

+ old tests as new ones are **not complete**!

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



\textbf{Date:} \$LastChangedDate: 2007-09-01 15:56:36 +0200 (Sa, 01 Sep 2007) \$



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




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

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

    \label{cssutils:tests:test_tokenize2:TokenizerTestCase}
\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\_tokenize2.TokenizerTestCase}}
\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_tokenize2:TokenizerTestCase:test_linenumbers}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_tokenize2 \textit{(module)}!cssutils.tests.test\_tokenize2.TokenizerTestCase \textit{(class)}!cssutils.tests.test\_tokenize2.TokenizerTestCase.test\_linenumbers \textit{(method)}}

    \vspace{0.5ex}

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

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

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    Tokenizer line + col

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

    \label{cssutils:tests:test_tokenize2:TokenizerTestCase:test_tokenize}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_tokenize2 \textit{(module)}!cssutils.tests.test\_tokenize2.TokenizerTestCase \textit{(class)}!cssutils.tests.test\_tokenize2.TokenizerTestCase.test\_tokenize \textit{(method)}}

    \vspace{0.5ex}

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

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

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    cssutils Tokenizer().tokenize()

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

    \label{cssutils:tests:test_tokenize2:TokenizerTestCase:test_tokenizefullsheet}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_tokenize2 \textit{(module)}!cssutils.tests.test\_tokenize2.TokenizerTestCase \textit{(class)}!cssutils.tests.test\_tokenize2.TokenizerTestCase.test\_tokenizefullsheet \textit{(method)}}

    \vspace{0.5ex}

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

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

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    cssutils Tokenizer().tokenize(fullsheet=True)

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

    \label{cssutils:tests:test_tokenize2:TokenizerTestCase:test_tokenizeCSS3}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_tokenize2 \textit{(module)}!cssutils.tests.test\_tokenize2.TokenizerTestCase \textit{(class)}!cssutils.tests.test\_tokenize2.TokenizerTestCase.test\_tokenizeCSS3 \textit{(method)}}

    \vspace{0.5ex}

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

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

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSS3 Tokenizer().tokenize()

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

    \label{cssutils:tests:test_tokenize2:TokenizerTestCase:test_tokenizeCSS2_1}
    \index{cssutils \textit{(package)}!cssutils.tests \textit{(package)}!cssutils.tests.test\_tokenize2 \textit{(module)}!cssutils.tests.test\_tokenize2.TokenizerTestCase \textit{(class)}!cssutils.tests.test\_tokenize2.TokenizerTestCase.test\_tokenizeCSS2\_1 \textit{(method)}}

    \vspace{0.5ex}

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

    \raggedright \textbf{test\_tokenizeCSS2\_1}(\textit{self})

    \vspace{-1.5ex}

    \rule{\textwidth}{0.5\fboxrule}
\setlength{\parskip}{2ex}
    CSS2 Tokenizer().tokenize()

\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}


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%                            Class Variables                            %%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

  \subsubsection{Class Variables}

    \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\raggedright t\-e\-s\-t\-s\-a\-l\-l\- & \raggedright \textbf{Value:} 
{\tt \texttt{\{}\texttt{u'}\texttt{        }\texttt{'}\texttt{: }\texttt{[}\texttt{(}\texttt{'}\texttt{S}\texttt{'}\texttt{, }\texttt{u'}\texttt{        }\texttt{'}\texttt{, }1\texttt{, }1\texttt{)}\texttt{]}\texttt{,}\texttt{...}}&\\
\cline{1-2}
\raggedright t\-e\-s\-t\-s\-3\- & \raggedright \textbf{Value:} 
{\tt \texttt{\{}\texttt{u'}\texttt{ \$= }\texttt{'}\texttt{: }\texttt{[}\texttt{(}\texttt{'}\texttt{S}\texttt{'}\texttt{, }\texttt{u'}\texttt{ }\texttt{'}\texttt{, }1\texttt{, }1\texttt{)}\texttt{, }\texttt{(}\texttt{'}\texttt{SUFFIXMATCH}\texttt{'}\texttt{, }\texttt{u'}\texttt{\$=}\texttt{'}\texttt{, }1\texttt{, }2\texttt{...}}&\\
\cline{1-2}
\raggedright t\-e\-s\-t\-s\-2\- & \raggedright \textbf{Value:} 
{\tt \texttt{\{}\texttt{u'}\texttt{ !important }\texttt{'}\texttt{: }\texttt{[}\texttt{(}\texttt{'}\texttt{S}\texttt{'}\texttt{, }\texttt{u'}\texttt{ }\texttt{'}\texttt{, }1\texttt{, }1\texttt{)}\texttt{, }\texttt{(}\texttt{'}\texttt{CHAR}\texttt{'}\texttt{, }\texttt{u'}\texttt{!}\texttt{'}\texttt{, }1\texttt{, }2\texttt{...}}&\\
\cline{1-2}
\raggedright t\-e\-s\-t\-s\-2\-o\-n\-l\-y\- & \raggedright \textbf{Value:} 
{\tt \texttt{\{}\texttt{u'}\texttt{ + }\texttt{'}\texttt{: }\texttt{[}\texttt{(}\texttt{'}\texttt{S}\texttt{'}\texttt{, }\texttt{u'}\texttt{ }\texttt{'}\texttt{, }1\texttt{, }1\texttt{)}\texttt{, }\texttt{(}\texttt{'}\texttt{PLUS}\texttt{'}\texttt{, }\texttt{u'}\texttt{+}\texttt{'}\texttt{, }1\texttt{, }2\texttt{)}\texttt{, }\texttt{(}\texttt{'}\texttt{S}\texttt{'}\texttt{, }\texttt{...}}&\\
\cline{1-2}
\raggedright t\-e\-s\-t\-s\-f\-u\-l\-l\-s\-h\-e\-e\-t\- & \raggedright \textbf{Value:} 
{\tt \texttt{\{}\texttt{u}\texttt{...}}&\\
\cline{1-2}
\raggedright t\-e\-s\-t\-s\-f\-u\-l\-l\-s\-h\-e\-e\-t\-f\-a\-l\-s\-e\- & \raggedright \textbf{Value:} 
{\tt \texttt{\{}\texttt{u'}\texttt{ " }\texttt{'}\texttt{: }\texttt{[}\texttt{(}\texttt{'}\texttt{S}\texttt{'}\texttt{, }\texttt{u'}\texttt{ }\texttt{'}\texttt{, }1\texttt{, }1\texttt{)}\texttt{, }\texttt{(}\texttt{'}\texttt{INVALID}\texttt{'}\texttt{, }\texttt{u'}\texttt{" }\texttt{'}\texttt{, }1\texttt{, }2\texttt{)}\texttt{]}\texttt{, }\texttt{u}\texttt{...}}&\\
\cline{1-2}
\raggedright t\-e\-s\-t\-s\-f\-u\-l\-l\-s\-h\-e\-e\-t\-t\-r\-u\-e\- & \raggedright \textbf{Value:} 
{\tt \texttt{\{}\texttt{u'}\texttt{ " }\texttt{'}\texttt{: }\texttt{[}\texttt{(}\texttt{'}\texttt{S}\texttt{'}\texttt{, }\texttt{u'}\texttt{ }\texttt{'}\texttt{, }1\texttt{, }1\texttt{)}\texttt{, }\texttt{(}\texttt{'}\texttt{STRING}\texttt{'}\texttt{, }\texttt{u'}\texttt{" "}\texttt{'}\texttt{, }1\texttt{, }2\texttt{)}\texttt{]}\texttt{, }\texttt{u}\texttt{...}}&\\
\cline{1-2}
\end{longtable}

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