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)
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)
def test_get_gz_object_nosuchkey(): obj = s3_client.get_gz_object('foobar') assert obj is None
def test_get_gz_object_nosuchkey(): obj = s3_client.get_gz_object('foobar') assert obj is None