fix the record_property test
This commit is contained in:
		
							parent
							
								
									7c0c91a7a2
								
							
						
					
					
						commit
						2018cf12b1
					
				|  | @ -868,16 +868,13 @@ def test_record_property(testdir): | ||||||
|         def test_record(record_property, other): |         def test_record(record_property, other): | ||||||
|             record_property("foo", "<1"); |             record_property("foo", "<1"); | ||||||
|     """) |     """) | ||||||
|     result, dom = runandparse(testdir, '-rw') |     result, dom = runandparse(testdir, '-rwv') | ||||||
|     node = dom.find_first_by_tag("testsuite") |     node = dom.find_first_by_tag("testsuite") | ||||||
|     tnode = node.find_first_by_tag("testcase") |     tnode = node.find_first_by_tag("testcase") | ||||||
|     psnode = tnode.find_first_by_tag('properties') |     psnode = tnode.find_first_by_tag('properties') | ||||||
|     pnodes = psnode.find_by_tag('property') |     pnodes = psnode.find_by_tag('property') | ||||||
|     pnodes[0].assert_attr(name="bar", value="1") |     pnodes[0].assert_attr(name="bar", value="1") | ||||||
|     pnodes[1].assert_attr(name="foo", value="<1") |     pnodes[1].assert_attr(name="foo", value="<1") | ||||||
|     result.stdout.fnmatch_lines([ |  | ||||||
|         'test_record_property.py::test_record', |  | ||||||
|     ]) |  | ||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def test_record_property_same_name(testdir): | def test_record_property_same_name(testdir): | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue