Esempio n. 1
0
 def test_l(self):
     person = visio.Person(800, "Texas")
     product = visio.Product("other", None, None)
     engine.runRules(person, product, rules)
     self.assertEqual(product.interest_rate, 4.7)
     self.assertEqual(product.disqualified, False)
Esempio n. 2
0
 def test_g(self):
     person = visio.Person(720, "Texas")
     product = visio.Product("7-1 ARM", None, None)
     engine.runRules(person, product, rules)
     self.assertEqual(product.interest_rate, 5.2)
     self.assertEqual(product.disqualified, False)
Esempio n. 3
0
 def test_i(self):
     person = visio.Person(800, "Florida")
     product = visio.Product("7-1 ARM", None, None)
     engine.runRules(person, product, rules)
     self.assertEqual(product.interest_rate, 5.2)
     self.assertEqual(product.disqualified, True)
Esempio n. 4
0
 def test_f(self):
     person = visio.Person(720, "Florida")
     product = visio.Product("other", None, None)
     engine.runRules(person, product, rules)
     self.assertEqual(product.interest_rate, 4.7)
     self.assertEqual(product.disqualified, True)