FIX: Bloody smartquotes

This commit is contained in:
2020-03-07 15:43:33 +00:00
parent 7773bf96c8
commit e1b84f5182

View File

@@ -94,8 +94,8 @@ class UserRegistrationTest(LiveServerTestCase):
# Read what the error is
alert = self.browser.find_element_by_css_selector(
'div.alert-danger').text
# Note to future maintainers - mind out for smart quotes...
self.assertIn("password fields didn't match", alert)
# TODO Use regex matching to handle smart/unsmart quotes...
self.assertIn("password fields didn", alert)
# Passwords should be empty
self.assertEqual(password1.get_attribute('value'), '')