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

Unified Diff: tests/test_parser.py

Issue 29879650: Issue 6950 - Don't include headers and metadata from includes into output (Closed)
Patch Set: Simplify regexp Created Sept. 14, 2018, 2:35 p.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
« abp/filters/renderer.py ('K') | « tests/test_differ.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/test_parser.py
===================================================================
--- a/tests/test_parser.py
+++ b/tests/test_parser.py
@@ -165,14 +165,12 @@
def test_parse_filterlist():
result = parse_filterlist(['[Adblock Plus 1.1]',
- '! Last modified: 26 Jul 2018 02:10 UTC',
Vasily Kuznetsov 2018/09/14 15:09:35 Maybe we keep this and verify that it's parsed as
Sebastian Noack 2018/09/14 15:33:25 Done.
'! Homepage : http://aaa.com/b',
'||example.com^',
'! Checksum: OaopkIiiAl77sSHk/VAWDA',
'! Note: bla bla'])
assert next(result) == Header('Adblock Plus 1.1')
- assert next(result).type == 'comment'
assert next(result) == Metadata('Homepage', 'http://aaa.com/b')
assert next(result).type == 'filter'
assert next(result) == Metadata('Checksum', 'OaopkIiiAl77sSHk/VAWDA')
« abp/filters/renderer.py ('K') | « tests/test_differ.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld