-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c7d96a3
commit 5e97694
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#! /usr/bin/env python | ||
# -*- coding: utf-8 -*- | ||
# | ||
# Interpreter version: python 2.7 | ||
# | ||
# Imports ===================================================================== | ||
import pytest | ||
|
||
from wa_kat.analyzers.creation_date_detector import TimeResource | ||
from wa_kat.analyzers.creation_date_detector import mementoweb_api_tags | ||
from wa_kat.analyzers.creation_date_detector import get_whois_tags | ||
from wa_kat.analyzers.creation_date_detector import get_creation_date_tags | ||
|
||
|
||
# Tests ======================================================================= | ||
def test_kitakitsune_mementoweb(): | ||
memento_tags = mementoweb_api_tags("kitakitsune.org") | ||
|
||
assert memento_tags | ||
|
||
|
||
def test_kitakitsune_whois(): | ||
whois_tags = get_whois_tags("kitakitsune.org") | ||
|
||
assert whois_tags[0].url == "http://whois.icann.org/en/lookup?name=kitakitsune.org" | ||
assert whois_tags[0].date == "2009-03-27T04:04:05" | ||
assert whois_tags[0].val == "2009" | ||
assert whois_tags[0].source == "Whois" |