def test_init_sets_the_domain_from_the_extracted_uri(self, db_session, document):
    document.web_uri = 'https://www.example.com/foobar.html'
    bucket = bucketing.DocumentBucket(document)
    assert (bucket.domain == 'www.example.com')
def test_init_sets_the_domain_from_the_extracted_uri(self, db_session, document):
    document.web_uri = 'https://www.example.com/foobar.html'
    bucket = bucketing.DocumentBucket(document)
    assert (bucket.domain == 'www.example.com')