new_contents: # Licensed under a 3-clause BSD style license - see LICENSE.rst
  # -*- coding: utf-8 -*-
  """Test desimodel.healpix
  """
  from __future__ import print_function, division
  
  import unittest
  import numpy as np
  from desimodel.healpix import tiles2pix
  
  class TestHealpix(unittest.TestCase):
      """Test desimodel.healpix.
      """
      def test_tiles2pix(self):
          """Test that the correct healpix tiles are returned for a couple values of nside.
          """
          import desimodel.io
          tiles = desimodel.io.load_tiles()
  
          pix = tiles2pix(nside=8, tiles=tiles[:3], radius=1.6)
          self.assertTrue( np.all(pix==[196,197,208,302,303]) )
  
          pix = tiles2pix(nside=16, tiles=tiles[:3], radius=1.6)
          self.assertTrue( np.all(pix==[785,788,789,791,832,1209,1211,1214,1215]) )
  
  def test_suite():
      """Allows testing of only this module with the command::
          python setup.py test -m <modulename>
      """
      return unittest.defaultTestLoader.loadTestsFromName(__name__)
  
subject: add unit test