def METHOD_NAME(self):
    assert resource_string("missing") is None
    assert resource_string("missing", "gone") is None
    assert resource_string('test/data/empty.txt') == six.b('empty')
    assert resource_string('empty.txt', 'test/data') == six.b('empty')
    tmp = tempfile.NamedTemporaryFile('w').name
    with open(tmp, "w") as fd:
        fd.write("test")
    try:
        print(resource_string(tmp))
        assert resource_string(tmp) == 'test'
        (d, fn) = os.path.split(tmp)
        assert resource_string(fn, d) == 'test'
    except IOError as ex:
        raise ex
    finally:
        try:
            os.unlink(tmp)
        except Exception:
            pass