From a2a62997668c07c514bce2bdc5349a1c028db1b6 Mon Sep 17 00:00:00 2001 From: Rudi Giesler Date: Thu, 29 Jan 2015 13:35:17 +0200 Subject: [PATCH] Update admin tests for grappelli changes. --- go/billing/tests/test_admin.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/go/billing/tests/test_admin.py b/go/billing/tests/test_admin.py index 89ca9c3ad..e7bb5eb95 100644 --- a/go/billing/tests/test_admin.py +++ b/go/billing/tests/test_admin.py @@ -24,7 +24,7 @@ def test_admin_accessible(self): client.login() response = client.get( reverse('admin:app_list', kwargs={'app_label': 'billing'})) - self.assertContains(response, "Models in the Billing application") + self.assertContains(response, "Billing administration") self.assertContains(response, "Accounts") self.assertContains(response, "Message costs") self.assertContains(response, "Statements") @@ -38,10 +38,10 @@ def test_link_to_html_view(self): client = self.vumi_helper.get_client() client.login() response = client.get(reverse('admin:billing_statement_changelist')) - self.assertContains(response, "1 statement") + self.assertContains(response, "1 total") self.assertContains( response, - 'html' % (statement.id,)) + '' % (statement.id,)) def test_statement_admin_view(self): mk_transaction(self.account) @@ -51,7 +51,7 @@ def test_statement_admin_view(self): response = client.get( reverse('admin:billing_statement_change', args=[statement.id])) self.assertContains(response, "Monthly Statement for") - self.assertContains(response, "Account:") + self.assertContains(response, "Account") # check that line items have been inlined self.assertContains(response, "Channel") self.assertContains(response, "Channel type")