def test_incontext_link_returns_none_if_bucket_empty(self, document, patch):
    patch('h.links.incontext_link')
    bucket = bucketing.DocumentBucket(document)
    request = Mock()
    assert (bucket.incontext_link(request) is None)
def test_incontext_link_returns_none_if_bucket_empty(self, document, patch):
    patch('h.links.incontext_link')
    bucket = bucketing.DocumentBucket(document)
    request = Mock()
    assert (bucket.incontext_link(request) is None)