Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,8 @@ def test_full_run_no_redirect(capsys):
def test_full_run_with_redirect(capsys):
"""Validate output for a given URL that has a redirect."""
expected_output = [
"Results for http://rules.ncats.cyber.dhs.gov:",
" Retrieved URL - 'https://rules.ncats.cyber.dhs.gov/'",
"Results for http://rules.vm.cyber.dhs.gov:",
" Retrieved URL - 'https://rules.vm.cyber.dhs.gov/'",
" Status code - '200'",
" Content type - 'text/plain'",
" Redirect - True",
Expand All @@ -174,7 +174,7 @@ def test_full_run_with_redirect(capsys):
with patch.object(
sys,
"argv",
["bogus", "--show-redirect", "http://rules.ncats.cyber.dhs.gov"],
["bogus", "--show-redirect", "http://rules.vm.cyber.dhs.gov"],
):
return_code = cli.main()
except SystemExit as sys_exit:
Expand Down
2 changes: 1 addition & 1 deletion tests/test_hasher.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def test_hash_url_html_status_404():

def test_hash_url_with_redirect():
"""Test against a URL that redirects and has no content-type parameters."""
test_url = "http://rules.ncats.cyber.dhs.gov"
test_url = "http://rules.vm.cyber.dhs.gov"

hasher = hash_http_content.UrlHasher(HASH_ALGORITHM)
result = hasher.hash_url(test_url)
Expand Down