Skip to content

Commit 304c48b

Browse files
author
Tomasz-Kluczkowski
committed
Add test to amend_domain_values (confirm original kept intact).
1 parent 8dd27a6 commit 304c48b

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tests/test_data_extractor.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,3 +94,16 @@ def test_amend_domain_values(self):
9494
}
9595
]
9696
assert data_extractor.amend_domain_values() == expected
97+
98+
def test_amend_domain_values_retains_original_if_prefix_matching(self):
99+
test_data = [
100+
{
101+
'name': 'Google',
102+
'url': 'https://www.google.co.uk',
103+
'domain': 'www.google.co.uk',
104+
'secure': True,
105+
'value': 5
106+
}
107+
]
108+
_data_extractor = DataExtractor(test_data)
109+
assert _data_extractor.amend_domain_values() == test_data

0 commit comments

Comments
 (0)