old_contents: from radar.auth.passwords import password_to_nato_str, check_password_hash, generate_password_hash, generate_password, GENERATE_PASSWORD_LENGTH
  
  
  def test_password_to_nato_str():
      password = 'aAzZ123'
      assert password_to_nato_str(password) == 'lower alfa, UPPER ALFA, lower zulu, UPPER ZULU, ONE, TWO, THREE'
  
  
  def test_password_hash():
      password = 'password123'
      password_hash = generate_password_hash('password123')
      assert password_hash != password
      assert check_password_hash(password_hash, password)
  
  
  def generate_password():
      password = generate_password()
      assert len(password) == GENERATE_PASSWORD_LENGTH
  
new_contents: from radar.auth.passwords import password_to_nato_str, check_password_hash, generate_password_hash, generate_password, GENERATE_PASSWORD_LENGTH
  
  
  def test_password_to_nato_str():
      password = 'aAzZ123'
      assert password_to_nato_str(password) == 'lower alfa, UPPER ALFA, lower zulu, UPPER ZULU, ONE, TWO, THREE'
  
  
  def test_password_hash():
      password = 'password123'
      password_hash = generate_password_hash('password123')
      assert password_hash != password
      assert check_password_hash(password_hash, password)
  
  
  def test_generate_password():
      password = generate_password()
      assert len(password) == GENERATE_PASSWORD_LENGTH
  
subject: Fix test name