added more detail for test based on suggestion:

This commit is contained in:
asaki222 2024-09-18 12:01:46 -04:00
parent 0d695584c4
commit 294fbee5c3
No known key found for this signature in database
GPG key ID: 2C4F802060E06EA4

View file

@ -933,8 +933,8 @@ class UserProfileTests(TestWithUser, WebTest):
self.assertNotContains(response, "Back to manage your domains")
@less_console_noise_decorator
def test_domain_detail(self):
"""test that domain detail view"""
def test_domain_detail_contains_your_profile(self):
"""Tests that the domain detail view contains 'your profile' rather than 'your contact information'"""
response = self.client.get(reverse("domain", args=[self.domain.pk]))
self.assertContains(response, "Your profile")
self.assertNotContains(response, "Your contact information")