def test_responsible_contains_client_and_userid_splited_with_a_slash(self):
        dossier = create(Builder('dossier')
                 .having(responsible=TEST_USER_ID))

        dossierdetails = self.get_dossierdetails_view(dossier)
        self.assertEquals(
            'Client1 / User t\xc3\xa4st (test_user_1_)'.decode('utf-8'),
            dossierdetails.get_responsible())
Esempio n. 2
0
    def test_responsible_contains_admin_unit_and_userid(self):
        dossier = create(Builder('dossier')
                         .having(responsible=TEST_USER_ID))

        dossierdetails = self.get_dossierdetails_view(dossier)
        self.assertEquals(
            'Regierungsrat / User t\xc3\xa4st (test_user_1_)',
            dossierdetails.get_responsible().encode('utf-8'))
    def test_responsible_contains_admin_unit_and_userid(self):
        dossier = create(Builder('dossier').having(responsible=TEST_USER_ID))

        dossierdetails = self.get_dossierdetails_view(dossier)
        self.assertEquals('Regierungsrat / User t\xc3\xa4st (test_user_1_)',
                          dossierdetails.get_responsible().encode('utf-8'))