err := container.SetProperty("property-name", "some-other-new-value") Expect(err).ToNot(HaveOccurred()) value, err := container.Property("property-name") Expect(err).ToNot(HaveOccurred()) Expect(value).To(Equal("some-other-new-value")) }) Context("when removing a property", func() { var err error JustBeforeEach(func() { err = container.SetProperty("other-property-name", "some-other-value") Expect(err).ToNot(HaveOccurred()) err = container.RemoveProperty("property-name") }) It("removes the property", func() { Expect(err).ToNot(HaveOccurred()) _, err = container.Property("property-name") Expect(err).To(Equal(linux_container.UndefinedPropertyError{"property-name"})) }) It("does not remove other properties", func() { value, err := container.Property("other-property-name") Expect(err).ToNot(HaveOccurred()) Expect(value).To(Equal("some-other-value")) }) })