From 0633df114e27f4e194bf98354e57e0849c02c8f9 Mon Sep 17 00:00:00 2001 From: Cayo Puigdefabregas Date: Mon, 8 Feb 2021 19:04:49 +0100 Subject: [PATCH] fixing DomainBillingTest --- .../tests/functional_tests/test_domain.py | 54 +++++++++---------- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/orchestra/contrib/services/tests/functional_tests/test_domain.py b/orchestra/contrib/services/tests/functional_tests/test_domain.py index 423a166e..a45c3ec2 100644 --- a/orchestra/contrib/services/tests/functional_tests/test_domain.py +++ b/orchestra/contrib/services/tests/functional_tests/test_domain.py @@ -44,95 +44,95 @@ class DomainBillingTest(BaseTestCase): account = self.create_account() self.create_domain(account=account) bills = account.orders.bill() - self.assertEqual(0, bills[0].get_total()) + self.assertEqual(0, bills[0].total) self.create_domain(account=account) bills = account.orders.bill() - self.assertEqual(10, bills[0].get_total()) + self.assertEqual(10, bills[0].total) self.create_domain(account=account) bills = account.orders.bill() - self.assertEqual(20, bills[0].get_total()) + self.assertEqual(20, bills[0].total) self.create_domain(account=account) bills = account.orders.bill() - self.assertEqual(29, bills[0].get_total()) + self.assertEqual(29, bills[0].total) self.create_domain(account=account) bills = account.orders.bill() - self.assertEqual(38, bills[0].get_total()) + self.assertEqual(38, bills[0].total) self.create_domain(account=account) bills = account.orders.bill() - self.assertEqual(44, bills[0].get_total()) + self.assertEqual(44, bills[0].total) self.create_domain(account=account) bills = account.orders.bill() - self.assertEqual(50, bills[0].get_total()) + self.assertEqual(50, bills[0].total) self.create_domain(account=account) bills = account.orders.bill() - self.assertEqual(56, bills[0].get_total()) + self.assertEqual(56, bills[0].total) def test_domain_proforma(self): self.create_domain_service() account = self.create_account() self.create_domain(account=account) bills = account.orders.bill(proforma=True, new_open=True) - self.assertEqual(0, bills[0].get_total()) + self.assertEqual(0, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(proforma=True, new_open=True) - self.assertEqual(10, bills[0].get_total()) + self.assertEqual(10, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(proforma=True, new_open=True) - self.assertEqual(20, bills[0].get_total()) + self.assertEqual(20, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(proforma=True, new_open=True) - self.assertEqual(29, bills[0].get_total()) + self.assertEqual(29, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(proforma=True, new_open=True) - self.assertEqual(38, bills[0].get_total()) + self.assertEqual(38, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(proforma=True, new_open=True) - self.assertEqual(44, bills[0].get_total()) + self.assertEqual(44, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(proforma=True, new_open=True) - self.assertEqual(50, bills[0].get_total()) + self.assertEqual(50, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(proforma=True, new_open=True) - self.assertEqual(56, bills[0].get_total()) + self.assertEqual(56, bills[0].total) def test_domain_cumulative(self): self.create_domain_service() account = self.create_account() self.create_domain(account=account) bills = account.orders.bill(proforma=True) - self.assertEqual(0, bills[0].get_total()) + self.assertEqual(0, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(proforma=True) - self.assertEqual(10, bills[0].get_total()) + self.assertEqual(10, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(proforma=True) - self.assertEqual(30, bills[0].get_total()) + self.assertEqual(30, bills[0].total) def test_domain_new_open(self): self.create_domain_service() account = self.create_account() self.create_domain(account=account) bills = account.orders.bill(new_open=True) - self.assertEqual(0, bills[0].get_total()) + self.assertEqual(0, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(new_open=True) - self.assertEqual(10, bills[0].get_total()) + self.assertEqual(10, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(new_open=True) - self.assertEqual(10, bills[0].get_total()) + self.assertEqual(10, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(new_open=True) - self.assertEqual(9, bills[0].get_total()) + self.assertEqual(9, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(new_open=True) - self.assertEqual(9, bills[0].get_total()) + self.assertEqual(9, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(new_open=True) - self.assertEqual(6, bills[0].get_total()) + self.assertEqual(6, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(new_open=True) - self.assertEqual(6, bills[0].get_total()) + self.assertEqual(6, bills[0].total) self.create_domain(account=account) bills = account.orders.bill(new_open=True) - self.assertEqual(6, bills[0].get_total()) + self.assertEqual(6, bills[0].total)