Skip to content
This repository has been archived by the owner on Jun 12, 2018. It is now read-only.

Commit

Permalink
Update admin tests for grappelli changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rudi Giesler committed Jan 29, 2015
1 parent 2645f68 commit a2a6299
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions go/billing/tests/test_admin.py
Expand Up @@ -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")
Expand All @@ -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,
'<a href="/billing/statement/%s">html</a>' % (statement.id,))
'<a href="/billing/statement/%s">' % (statement.id,))

def test_statement_admin_view(self):
mk_transaction(self.account)
Expand All @@ -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")
Expand Down

0 comments on commit a2a6299

Please sign in to comment.