def test_add_role_name(self):
        user = User("foo-user")

        user.add_role_name(u'manage-user')

        role = user.role_names()[0]
        self.assertEqual(u'manage-user', role)
Beispiel #2
0
    def test_add_role_name(self):
        user = User("foo-user")

        user.add_role_name(u'manage-user')

        role = user.role_names()[0]
        assert u'manage-user' == role
Beispiel #3
0
    def test_add_role_name(self):
        user = User("foo-user")

        user.add_role_name(u'manage-user')

        role = user.role_names()[0]
        self.assertEqual(u'manage-user', role)