Navigation Menu

Skip to content
This repository has been archived by the owner on Nov 27, 2017. It is now read-only.

Commit

Permalink
Renamed unittest to sparkup-unittest. What was I thinking?!
Browse files Browse the repository at this point in the history
  • Loading branch information
rstacruz committed Oct 20, 2009
1 parent c813071 commit f9241af
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion unittest.py → sparkup-unittest.py
@@ -1,7 +1,6 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import sys
from cStringIO import StringIO
import sparkup

class SparkupTest:
Expand Down Expand Up @@ -36,6 +35,10 @@ class SparkupTest:
'input': 'div#id.class[style=color:blue]',
'output': '<div style="color:blue" class="class" id="id">$1</div><!-- /#id -->$0'
},
#'Multiple attributes test': {
# 'input': 'div[align=center][style=color:blue][rel=none]',
# 'output': '<div style="color:blue" class="class" id="id">$1</div><!-- /#id -->$0'
# },
'Multiple class test': {
'input': 'div.c1.c2.c3',
'output': '<div class="c1 c2 c3">$1</div><!-- /.c1.c2.c3 -->$0'
Expand Down Expand Up @@ -88,6 +91,7 @@ class SparkupTest:
'input': 'p#menu > table+ + ul',
'output': '<p id="menu">\n <table cellspacing="0">\n <tr>\n <td>$1</td>\n </tr>\n </table>\n <ul>$2</ul>\n</p>$0'
},
# Add: text test, broken test, multi-attribute tests, indentation test, start and end comments test
}
def run(self):
"""Run Forrest run!"""
Expand Down

0 comments on commit f9241af

Please sign in to comment.