def test_verify_email_works_with_numbers_and_strings(self): from invenio_accounts.models import User u = User(email="*****@*****.**", password="") u.note = 2 self.assertTrue(u.verify_email()) u2 = User(email="*****@*****.**", password="") u2.note = "2" self.assertTrue(u2.verify_email())
def test_note_is_converted_to_string(self): from invenio_accounts.models import User u = User(email="*****@*****.**", password="") u.note = 2 self.assertTrue(isinstance(u.note, str))