You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: test_values.rb
    path of file: ./repos/beer.db/beerdb-models/test
    
    the code of the file until where you have to start completion: # encoding: utf-8

###
#  to run use
#     ruby -I ./lib -I ./test test/test_helper.rb
#  or better
#     rake test

require 'helper'


class TestValues < MiniTest::Test

  def setup
    #  delete all beers, brands, breweries in in-memory only db
    BeerDb.delete!
  end

  def test_load_beer_values

    key = 'ottakringerpur'

    values = [
      'Ottakringer (Gold Fassl) Pur {Bio}',
      '5.2 %',
      '11.8°',
      'bio'
    ]

    more_attribs = {
      country_id: AT.id
    }

    beer = Beer.create_or_update_from_values( values, more_attribs )

    beer2 = Beer.find_by_key!( key )
    assert_equal beer.id,  beer2.id

    assert_equal beer.title,         values[0]
    assert_equal beer.country_id,    AT.id
    assert_equal beer.country.title, AT.title
    assert_equal beer.abv,           5.2
    assert_equal beer.og,            11.8
    assert_equal beer.srm,           nil
  end

  def test_load_brewer
    
  def test_load_brewery_values_w_city_at

    # ottakringer, Ottakringer Brauerei, 1838, www.ottakringer.at, WI, city:wien, 1160 Wien // Ottakringer Platz 1
    #   brands: Ottakringer

    key = 'ottakringer'

    values = [
      key,
      'Ottakringer Brauerei',
      '1838',
      'www.ottakringer.at',
      '1160 Wien // Ottakringer Platz 1',
      'brands: Ottakringer'
    ]

    more_attribs = {
      country_id: AT.id,
      state_id: W.id
    }

    by = Brewery.create_or_update_from_values( values, more_attribs )

    by2 = Brewery.find_by_key!( key )
    assert( by.id == by2.id )

    assert( by.title         == values[1] )
    assert( by.country_id    == AT.id )
    assert( by.country.title == AT.title )
    assert( by.since         == 1838 )
    assert( by.web           == 'www.ottakringer.at' )
    assert( by.address       == '1160 Wien // Ottakringer Platz 1' )

    # check auto-created brand

    br = Brand.find_by_key!( 'ottakringer')

    assert( br.title         == 'Ottakringer' )
    assert( br.brewery_id    == by.id )
    assert( br.brewery.title == by.title )
    assert( br.country_id    == by.country_id )

    # todo: check for auto-created city
    assert( by.city.title == 'Wien' )
  end