def test_unit_summary_prefixes():
 from .. import astrophys
 for summary in utils._iter_unit_summary(astrophys.__dict__):
  (unit, _, _, _, prefixes) = summary
  if (unit.name == u'lyr'):
   assert prefixes
  elif (unit.name == u'pc'):
   assert prefixes
  elif (unit.name == u'barn'):
   assert prefixes
  elif (unit.name == u'cycle'):
   assert (not prefixes)
  elif (unit.name == u'vox'):
   assert prefixes

def test_unit_summary_prefixes ( ) : from . . import astrophys for summary in utils . _iter_unit_summary ( astrophys . __dict__ ) : ( unit , _ , _ , _ , prefixes ) = summary if ( unit . name == u'lyr' ) : assert prefixes elif ( unit . name == u'pc' ) : assert prefixes elif ( unit . name == u'barn' ) : assert prefixes elif ( unit . name == u'cycle' ) : assert ( not prefixes ) elif ( unit . name == u'vox' ) : assert prefixes
test for a few units that the unit summary table correctly reports whether or not that unit supports prefixes .