message: Add tests for package header parsing (issue
diff: @@ -2,6 +2,7 @@ import unittest
  from hdlConvertor import ParseException
  from hdlConvertor.language import Language
  +from hdlConvertor import hdlAst
  from tests.basic_tc import BasicTC, parseFile as _parseFile
  @@ -19,14 +20,23 @@ class VhdlConversionTC(BasicTC):
  def test_package_array_const(self):
  f, res = parseFile("package_array_const.vhd")
  str(res)
  + pkg = res.objs[0]
  + self.assertIsInstance(pkg, hdlAst.HdlNamespace)
  + self.assertEqual(pkg.name, 'array_const_pkg')
  def test_package_component(self):
  f, res = parseFile("package_component.vhd")
  str(res)
  + pkg = res.objs[4] # first 4 objects are libraries and 'use' clauses
  + self.assertIsInstance(pkg, hdlAst.HdlNamespace)
  + self.assertEqual(pkg.name, 'components_pkg')
  def test_package_constants(self):
  f, res = parseFile("package_constants.vhd")
  str(res)
  + pkg = res.objs[4] # first 4 objects are libraries and 'use' clauses
  + self.assertIsInstance(pkg, hdlAst.HdlNamespace)
  + self.assertEqual(pkg.name, 'constants_pkg')
  def test_fourbit_adder(self):
  f, res = parseFile("fourbit_adder.vhd")
  