Exemple #1
0
def test_get_gz_object():
    # Get XML
    key = 'papers/PMID27297883/fulltext/txt'
    obj = s3_client.get_gz_object(key)
    assert unicode_strs(obj)
    # Get reach output
    key = 'papers/PMID27297883/reach'
    obj = s3_client.get_gz_object(key)
    assert unicode_strs(obj)
Exemple #2
0
def test_get_gz_object():
    # Get XML
    key = 'papers/PMID27297883/fulltext/txt'
    obj = s3_client.get_gz_object(key)
    assert unicode_strs(obj)
    # Get reach output
    key = 'papers/PMID27297883/reach'
    obj = s3_client.get_gz_object(key)
    assert unicode_strs(obj)
Exemple #3
0
def test_get_gz_object_nosuchkey():
    obj = s3_client.get_gz_object('foobar')
    assert obj is None
Exemple #4
0
def test_get_gz_object_nosuchkey():
    obj = s3_client.get_gz_object('foobar')
    assert obj is None