Beispiel #1
0
    def test_save_role(self):
        role = Role("foo-role")

        assert role.create(self.connection).description() is None
        role.set_description("This is the foo role")

        role.update(self.connection)

        role = Role.lookup(self.connection, "foo-role")
        assert "This is the foo role" == role.description()

        role.delete(self.connection)
Beispiel #2
0
    def test_save_role(self):
        connection = Connection.make_connection(tc.hostname, tc.admin, tc.password)
        role = Role("foo-role")

        self.assertIsNone(role.create(connection).description())
        role.set_description("This is the foo role")

        role.update(connection)

        role = Role.lookup(connection, "foo-role")
        self.assertEqual("This is the foo role", role.description())

        role.delete(connection)
Beispiel #3
0
    def test_save_role(self):
        connection = Connection.make_connection(tc.hostname, tc.admin,
                                                tc.password)
        role = Role("foo-role")

        self.assertIsNone(role.create(connection).description())
        role.set_description("This is the foo role")

        role.update(connection)

        role = Role.lookup(connection, "foo-role")
        self.assertEqual("This is the foo role", role.description())

        role.delete(connection)
Beispiel #4
0
    def test_description(self):
        role = Role("foo-role")
        role.set_description("This is the foo role")

        assert "This is the foo role" == role.description()
Beispiel #5
0
    def test_description(self):
        role = Role("foo-role")
        role.set_description("This is the foo role")

        self.assertEqual(role.description(), "This is the foo role")
Beispiel #6
0
    def test_description(self):
        role = Role("foo-role")
        role.set_description("This is the foo role")

        self.assertEqual(role.description(), "This is the foo role")