text: import unittest
  import math_module
  
  class TestMath(unittest.TestCase):
      def setUp(self):
          self.zir = math_module.Analysis('test_zircon', 15, (0.2003, 0.0008, 0.0046), (2.082, 0.009, 0.07), 0.6, 0.6,
                                     (0.0617, 0.0003, 0.0003), (0.758, 0.0003, 0.0015), (0, 0, 0), (0, 0, 0), (0, 0, 0),
                                     (0, 0, 0), (0, 0, 0), (0, 0, 0), (0, 0, 0), 1)
  
      def tearDown(self):
          pass
  
      def test_calc_ratio(self):
          result = math_module.calc_ratio(1000)[0]
          self.assertEqual(result,  0.16780392747297124)
  
      def test_analysis(self):
          self.assertEqual(round(self.zir.calc_age(0)[0], 0), 1177)
  
  
  
  
  if __name__ == '__main__':
      unittest.main()