def METHOD_NAME(topology):
    """Test instance opening
    Check status before and after
    Try to add a user
    """
    log.info('Check instance state is offline')
    assert topology.instance.state == DIRSRV_STATE_OFFLINE
    topology.instance.open()
    log.info('Check instance state is online')
    assert topology.instance.state == DIRSRV_STATE_ONLINE
    log.info('Try to add user. Success is excpected')
    _add_user(topology)