Derive pay-down + CSS families by name (milestone 299 steps 5–6, note #2917) #126
@@ -493,7 +493,7 @@ def test_extract_definitions_fingerprints_each_block():
|
||||
import hashlib
|
||||
assert e["a"].body_sha != e["b"].body_sha != e["c"].body_sha
|
||||
assert e["a"].body_sha != hashlib.sha1(b"").hexdigest()[:16]
|
||||
two = ".a { color: red; margin: 0; }\n.b {\n color: red;\n margin: 0;\n}\n"
|
||||
two = ".a {\n color: red;\n margin: 0;\n}\n.b {\n color: red;\n margin: 0;\n}\n"
|
||||
f = {x.name: x for x in extract_definitions(two)}
|
||||
assert f["a"].body_sha == f["b"].body_sha
|
||||
|
||||
|
||||
Reference in New Issue
Block a user