# Path: molmod/periodic.py
# class AtomInfo(object):
# class PeriodicData(object):
#     def __init__(self):
#         def append_convertor(word):
#     def _add_atom_info(self, atom_info):
#     def __len__(self):
#     def __getitem__(self, index):
#     def iter_numbers(self):
# 
# Path: molmod/isotopes.py
# class Ame2003(object):
# class NubTab03(object):
#     def __init__(self):
#         def add_mass(N, Z, mass):
#     def __init__(self):
#         def add_abundance(A, Z, abundance):
#                 N = int(line[ 5:10])
#                 Z = int(line[10:15])
#                 Z = int(line[0:3])
#                 A = int(line[4:7])


import unittest
from molmod import *
from molmod.periodic import periodic
from molmod.isotopes import ame2003, nubtab03
# This file is part of MolMod.
#
# MolMod is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# MolMod is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>
#
# --


from __future__ import division




__all__ = ["DataTestCase"]


class DataTestCase(unittest.TestCase):
    def test_periodic(self):
        # assert that the most important fields have been loaded
        # and that the conversions are done correctly

# Path: molmod/periodic.py
# class AtomInfo(object):
# class PeriodicData(object):
#     def __init__(self):
#         def append_convertor(word):
#     def _add_atom_info(self, atom_info):
#     def __len__(self):
#     def __getitem__(self, index):
#     def iter_numbers(self):
# 
# Path: molmod/isotopes.py
# class Ame2003(object):
# class NubTab03(object):
#     def __init__(self):
#         def add_mass(N, Z, mass):
#     def __init__(self):
#         def add_abundance(A, Z, abundance):
#                 N = int(line[ 5:10])
#                 Z = int(line[10:15])
#                 Z = int(line[0:3])
#                 A = int(line[4:7])


# Path: molmod/test/test_data.py
import unittest
from molmod import *
from molmod.periodic import periodic
from molmod.isotopes import ame2003, nubtab03

# This file is part of MolMod.
#
# MolMod is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 3
# of the License, or (at your option) any later version.
#
# MolMod is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, see <http://www.gnu.org/licenses/>
#
# --


from __future__ import division




__all__ = ["DataTestCase"]


class DataTestCase(unittest.TestCase):
    def test_periodic(self):
        # assert that the most important fields have been loaded
        # and that the conversions are done correctly

        self.assertEqual(periodic[1].name, "Hydrogen")