示例#1
0
文件: test.py 项目: 0ddsoul/seng301
	def testMakePayment(self):
		myDebt = Debt("Lukas' Debt", 1000)
		expected = 900
		myDebt.makePayment(100)
		actual = myDebt.getAmount()
		self.assertEqual(expected, actual)
示例#2
0
文件: test.py 项目: 0ddsoul/seng301
	def testIncreaseDebt(self):
		myDebt = Debt("Lukas' Debt", 1000)
		expected =1100
		myDebt.increaseDebt(100)
		actual = myDebt.getAmount()
		self.assertEqual(expected, actual)
示例#3
0
文件: test.py 项目: 0ddsoul/seng301
	def testInitAmount(self):
		myDebt = Debt("Lukas' Debt", 1000)
		expected = 1000
		actual = myDebt.getAmount()
		self.assertEqual(expected, actual)