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: tc_content_type.rb
    path of file: ./repos/caxlsx/test/content_type
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

require 'tc_helper'

class TestContentType < Minitest::Test
  def setup
    @package = Axlsx::Package.new
    @doc = Nokogiri::XML(@package.send(:content_types).to_xml_string)
  end

  def test_valid_document
    schema = Nokogiri::XML::Schema(File.open(Axlsx::CONTENT_TYPES_XSD))
    errors = schema.validate(@doc)

    assert_empty(errors)
  end

  def test_pre_built_types
    o_path = "//xmlns:Override[@ContentType='%s']"
    d_path = "//xmlns:Default[@ContentType='%s']"

    # default
    assert_equal(2, @doc.xpath("//xmlns:Default").size, "There should be 2 default types")

    node = @doc.xpath(format(d_path, Axlsx::XML_CT)).first

    assert_equal(node["Extension"], Axlsx::XML_EX.to_s, "xml content type invalid")

    node = @doc.xpath(format(d_path, Axlsx::RELS_CT)).first

    assert_equal(node["Extension"], Axlsx::RELS_EX.to_s, "relationships content type invalid")

    # overrride

    
  def test_pre_built_types
    o_path = "//xmlns:Override[@ContentType='%s']"
    d_path = "//xmlns:Default[@ContentType='%s']"

    # default
    assert_equal(2, @doc.xpath("//xmlns:Default").size, "There should be 2 default types")

    node = @doc.xpath(format(d_path, Axlsx::XML_CT)).first

    assert_equal(node["Extension"], Axlsx::XML_EX.to_s, "xml content type invalid")

    node = @doc.xpath(format(d_path, Axlsx::RELS_CT)).first

    assert_equal(node["Extension"], Axlsx::RELS_EX.to_s, "relationships content type invalid")

    # overrride
    assert_equal(4, @doc.xpath("//xmlns:Override").size, "There should be 4 Override types")

    node = @doc.xpath(format(o_path, Axlsx::APP_CT)).first

    assert_equal(node["PartName"], "/#{Axlsx::APP_PN}", "App part name invalid")

    node = @doc.xpath(format(o_path, Axlsx::CORE_CT)).first

    assert_equal(node["PartName"], "/#{Axlsx::CORE_PN}", "Core part name invalid")

    node = @doc.xpath(format(o_path, Axlsx::STYLES_CT)).first

    assert_equal(node["PartName"], "/xl/#{Axlsx::STYLES_PN}", "Styles part name invalid")

    node = @doc.xpath(format(o_path, Axlsx::WORKBOOK_CT)).first

    assert_equal(node["PartName"], "/#{Axlsx::WORKBOOK_PN}", "Workbook part invalid")
  end