File: test_omit.kid

package info (click to toggle)
kid 0.6.3-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 588 kB
  • ctags: 588
  • sloc: python: 2,447; makefile: 5; xml: 4
file content (21 lines) | stat: -rw-r--r-- 589 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<?xml version='1.0' encoding='utf-8'?>
<?python
# some fruits
fruits = ["apple", "orange", "kiwi", "M&M"]
?>
<testdoc xmlns:py="http://purl.org/kid/ns#">
  <test>
    <attempt><p py:strip="">outer p <em>is</em> omitted</p></attempt>
    <expect>outer p <em>is</em> omitted</expect>
  </test>
  
  <test>
    <attempt><p py:strip="True">outer p <em>is</em> omitted</p></attempt>
    <expect>outer p <em>is</em> omitted</expect>
  </test>

  <test>
    <attempt><p py:strip="False">outer p is not omitted</p></attempt>
    <expect><p>outer p is not omitted</p></expect>
  </test>
</testdoc>