mirror of
https://github.com/netzbegruenung/green-spider.git
synced 2024-05-02 17:14:51 +02:00
c065da4957
* Add test for dns_resolution * Add test for domain_variations * Add test for duplicate_content
21 lines
547 B
Python
21 lines
547 B
Python
import unittest
|
|
from pprint import pprint
|
|
|
|
from checks import domain_variations
|
|
from checks.config import Config
|
|
|
|
|
|
class TestDomainVariations(unittest.TestCase):
|
|
|
|
def test_simple(self):
|
|
url = 'http://example.org/'
|
|
config = Config(urls=[url])
|
|
checker = domain_variations.Checker(config=config, previous_results={})
|
|
checker.run()
|
|
config_after = checker.config
|
|
|
|
self.assertEqual(config_after.urls, ['http://example.org/', 'http://www.example.org/'])
|
|
|
|
if __name__ == '__main__':
|
|
unittest.main()
|