File: test_extends.kid

package info (click to toggle)
kid 0.9.6-2
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 2,264 kB
  • ctags: 4,633
  • sloc: python: 7,417; makefile: 120; sh: 47; xml: 4
file content (25 lines) | stat: -rw-r--r-- 673 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?xml version='1.0' encoding='utf-8'?>
<?python

import test.test_def as test_def

?>
<testdoc xmlns:py="http://purl.org/kid/ns#"
         py:extends="test_def, 'test_match.kid'">
  <test>
    <attempt py:content="inline_test()"/>
    <expect><p>a test paragraph</p></expect>
  </test>

  <test>
    <attempt>${inline_test()} and then ${'some'}</attempt>
    <expect><p>a test paragraph</p> and then some</expect>
  </test>
  
  <test>
    <attempt><foobar>This content should be copied</foobar></attempt>
    <expect><div class="foobar">second parent - first parent - This content should be copied</div></expect>
  </test>

  <!-- XXX need a recursive test -->
</testdoc>