def test_NoChangeIncome02(self):
     """
     Expect sales to remain after attempting to set it to 406.5 (decimal)
     """
     expIncome = 410
     rec = Record(None, "F")
     """Default values proven in other test"""
     rec.setIncome(expIncome)
     rec.setIncome(406.5)
     self.assertEqual(expIncome, rec.getIncome())
 def test_NoChangeIncome01(self):
     """
     Expect income to remain after attempting to set it to 1000
     (over the limit)
     """
     expIncome = 999
     rec = Record(None, "M")
     """Default values proven in other test"""
     rec.setIncome(expIncome)
     rec.setIncome(1000)
     self.assertEquals(expIncome, rec.getIncome())
 def test_NoChangeIncome03(self):
     """
     Expect income to remain after attempting to set it to "A"
     String can be used for the method, but "A" represents no number
     """
     expIncome = 220
     incomeStr = str(220)
     rec = Record(None, "F")
     """Default values proven in other test"""
     rec.setIncome(incomeStr)
     rec.setIncome("A")
     self.assertEqual(expIncome, rec.getIncome())
 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())