def test_NoChangeSales02(self):
     """
     Expect sales to remain after attempting to set it to 406.5 (decimal)
     """
     expSales = 410
     rec = Record(None, "F")
     """Default values proven in other test"""
     rec.setSales(expSales)
     rec.setSales(406.5)
     self.assertEqual(expSales, rec.getSales())
 def test_NoChangeSales01(self):
     """
     Expect sales to remain after attempting to set it to 1000
     (over the limit)
     """
     expSales = 999
     rec = Record(None, "M")
     """Default values proven in other test"""
     rec.setSales(expSales)
     rec.setSales(1000)
     self.assertEqual(expSales, rec.getSales())
 def test_NoChangeSales03(self):
     """
     Expect sales to remain after attempting to set it to "A"
     String can be used for the method, but "A" represents no number
     """
     expSales = 330
     salesStr = str(330)
     rec = Record(None, "F")
     """Default values proven in other test"""
     rec.setSales(salesStr)
     rec.setSales("A")
     self.assertEqual(expSales, rec.getSales())
 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())