Skip to content

Commit

Permalink
#89: Added failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Bystroushaak committed Feb 5, 2017
1 parent c7d96a3 commit 5e97694
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions tests/analyzers/test_date_detector.py
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"

0 comments on commit 5e97694

Please sign in to comment.