def test_NoChangeAge01(self):
     """
     Expect age to remain after attempting to set it to 100 (over the limit)
     """
     expAge = 99
     rec = Record(None, "M")
     """Default values proven in other test"""
     rec.setAge(expAge)
     rec.setAge(100)
     self.assertEqual(expAge, rec.getAge())
 def test_NoChangeAge02(self):
     """
     Expect age to remain after attempting to set it to 40.5 (decimal)
     """
     expAge = 41
     rec = Record(None, "F")
     """Default values proven in other test"""
     rec.setAge(expAge)
     rec.setAge(40.5)
     self.assertEqual(expAge, rec.getAge())
 def test_NoChangeAge03(self):
     """
     Expect age to remain after attempting to set it to "A"
     String can be used for the method, but "A" represents no number
     """
     expAge = 30
     ageStr = str(30)
     rec = Record(None, "F")
     """Default values proven in other test"""
     rec.setAge(ageStr)
     rec.setAge("A")
     self.assertEqual(expAge, rec.getAge())
 def test_DefaultAttributes(self):
     """
     Expect default atttibute values (age 0, sales 0, BMI Normal, income 0)
     """
     expAge = 0
     expSales = 0
     expBMI = "Normal"
     expIncome = 0
     rec = Record(None, "M")
     self.assertEqual(expAge, rec.getAge())
     self.assertEqual(expSales, rec.getSales())
     self.assertEqual(expBMI, rec.getBMI())
     self.assertEqual(expIncome, rec.getIncome())