###
### $Rev: 123 $
### $Date: 2007-08-03 18:28:30 +0900 (Fri, 03 Aug 2007) $
###


###
- name:		lint1
  desc:		valid syntax
  options: '-z'
  input: |
	<ul>
	<?py i = 0 ?>
	<?py for item in items: ?>
	<?py     i += 1 ?>
	<?py     color = i % 2 == 0 and 'FFF' or 'FCF' ?>
	 <li>${item}</li>
	<?py #end ?>
	</ul>
  expected: |
	.test.pyhtml - ok.

###
- name:		lint2
  desc:		tail ':' is missed
  options: '-z'
  input: |
	<ul>
	<?py i = 0 ?>
	<?py for item in items ?>
	<?py     i += 1 ?>
	<?py     color = i % 2 == 0 and 'FFF' or 'FCF' ?>
	 <li>${item}</li>
	<?py #end ?>
	</ul>
  expected: |
	.test.pyhtml:3:18: invalid syntax
	  3: for item in items
	                      ^
###
- name:		lint3
  desc:		"invalid indent of '#end'"
  options: '-z'
  input: |
	<ul>
	<?py i = 0 ?>
	<?py for item in items: ?>
	<?py     i += 1 ?>
	<?py     color = i % 2 == 0 and 'FFF' or 'FCF' ?>
	 <li>${item}</li>
	<?py   #end ?>
	</ul>
  expected: |
	.test.pyhtml:7:3: unindent does not match any outer indentation level
	  7:   #end
	       ^
###
- name:		lint4
  desc:		invalid indent of pass statement
  options: '-z'
  input: |
	<ul>
	<?py i = 0 ?>
	<?py for item in items: ?>
	<?py     i += 1 ?>
	<?py     color = i % 2 == 0 and 'FFF' or 'FCF' ?>
	 <li>${item}</li>
	<?py   pass ?>
	</ul>
  expected: |
	.test.pyhtml:7:3: unindent does not match any outer indentation level
	  7:   pass
	       ^
###
- name:		lint5
  desc:		invalid indent of statement
  options: '-z'
  input: |
	<ul>
	<?py i = 0 ?>
	<?py for item in items: ?>
	<?py     i += 1 ?>
	<?py        color = i % 2 == 0 and 'FFF' or 'FCF' ?>
	 <li>${item}</li>
	<?py #end ?>
	</ul>
  expected: |
	.test.pyhtml:5:7: unexpected indent
	  5:        color = i % 2 == 0 and 'FFF' or 'FCF'
	           ^
###
- name:		lint6
  desc:		invalid indent of statement
  options: '-z'
  input: |
	<ul>
	<?py i = 0 ?>
	<?py for item in items: ?>
	<?py     i += 1 ?>
	<?py   color = i % 2 == 0 and 'FFF' or 'FCF' ?>
	 <li>${item}</li>
	<?py #end ?>
	</ul>
  expected: |
	.test.pyhtml:5:3: unindent does not match any outer indentation level
	  5:   color = i % 2 == 0 and 'FFF' or 'FCF'
	       ^

###
- name:		lint7
  desc:		invalid indent of statement
  options: '-z'
  input: |
	<ul>
	<?py  i = 0 ?>
	<?py  for item in items: ?>
	<?py      i += 1 ?>
	<?py      color = i % 2 == 0 and 'FFF' or 'FCF' ?>
	 <li>${item}</li>
	<?py  #end ?>
	</ul>
  expected: |
	.test.pyhtml:2:1: unexpected indent
	  2:  i = 0
	     ^
