Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: tests/test_rpy.py

Issue 30022565: Issue 7325 - Let the parser handle filters than begin and end with '%' (Closed) Base URL: https://hg.adblockplus.org/python-abp
Patch Set: Created March 5, 2019, 1:17 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tests/test_parser.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_rpy.py
===================================================================
--- a/tests/test_rpy.py
+++ b/tests/test_rpy.py
@@ -71,6 +71,17 @@
b'options': [(b'domain', [(b'foo.com', True)])],
},
},
+ 'filter_with_%': {
+ 'in': b'%22banner%*%22idzone%',
+ 'out': {
+ b'type': b'Filter',
+ b'text': b'%22banner%*%22idzone%',
+ b'selector': {b'type': b'url-pattern',
+ b'value': b'%22banner%*%22idzone%'},
+ b'action': b'block',
+ b'options': [],
+ },
+ },
'filter_multiple': {
'in': b'foo.com,bar.com##div#ad1',
'out': {
« no previous file with comments | « tests/test_parser.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld