old_contents: import pytest
  from carculator.hot_emissions import HotEmissionsModel
  from carculator.driving_cycles import get_standard_driving_cycle
  
  dc = get_standard_driving_cycle()
  dc_name = "WLTC"
  
  def test_wrong_powertrain():
      hem = HotEmissionsModel(dc, dc_name)
      with pytest.raises(TypeError) as wrapped_error:
          hem.get_emissions_per_powertrain("electric")
      assert wrapped_error.type == TypeError
  
  def test_output_emissions():
      hem = HotEmissionsModel(dc, dc_name)
      urban = hem.get_emissions_per_powertrain("diesel")[0]
  
      assert len(urban) == 11
      assert urban.sum() > 1.2e-5
      assert urban.sum() < 1.25e-5
  
  
new_contents: import pytest
  from carculator.hot_emissions import HotEmissionsModel
  from carculator.driving_cycles import get_standard_driving_cycle
  
  dc = get_standard_driving_cycle()
  dc_name = "WLTC"
  
  def test_wrong_powertrain():
      hem = HotEmissionsModel(dc, dc_name)
      with pytest.raises(TypeError) as wrapped_error:
          hem.get_emissions_per_powertrain("electric")
      assert wrapped_error.type == TypeError
  
  def test_output_emissions():
      hem = HotEmissionsModel(dc, dc_name)
      urban = hem.get_emissions_per_powertrain("diesel")[0]
  
      assert len(urban) == 33
      assert urban.sum() > 1.2e-5
      assert urban.sum() < 1.25e-5
  
  
subject: Update test_hot_emissions.py