# -*- coding: utf-8 -*-

import unittest

from eduid_webapp.oidc_proofing.helpers import OIDCMsg


class MessagesTests(unittest.TestCase):
    def test_messages(self):
        """"""
        self.assertEqual(str(OIDCMsg.temp_error.value), 'Temporary technical problems')
        self.assertEqual(str(OIDCMsg.no_conn.value), 'No connection to authorization endpoint')
        self.assertEqual(str(OIDCMsg.nin_invalid.value), 'nin needs to be formatted as 18|19|20yymmddxxxx')

@@ -193,36 +193,32 @@
 elf.assertEqual(
-str(
 OIDCMsg.temp_err
@@ -225,17 +225,16 @@
 or.value
-)
 , 'Tempo
@@ -276,36 +276,32 @@
 elf.assertEqual(
-str(
 OIDCMsg.no_conn.
@@ -305,17 +305,16 @@
 nn.value
-)
 , 'No co
@@ -350,16 +350,252 @@
 point')%0A
+        # this message comes from a ValidationError in eduid_common.api.schemas.validators,%0A        # and not directly used in the oidc_proofing code - just relayed%0A        # It is here to gather it with all other translatable messages%0A
         
@@ -615,12 +615,8 @@
 ual(
-str(
 OIDC
@@ -636,17 +636,16 @@
 id.value
-)
 , 'nin n

remove useless str(), add a clarifying comment