Expect(err).To(Equal(disaster)) }) }) }) Describe("Properties", func() { Describe("CRUD", func() { It("can get a property", func() { value, err := container.Property("property-name") Expect(err).ToNot(HaveOccurred()) Expect(value).To(Equal("property-value")) }) It("can test for a set of properties", func() { Expect(container.HasProperties(garden.Properties{ "other-property": "property-value", })).To(BeFalse()) Expect(container.HasProperties(garden.Properties{ "property-name": "property-value", "other-property": "property-value", })).To(BeFalse()) Expect(container.HasProperties(garden.Properties{ "property-name": "property-value", })).To(BeTrue()) }) It("returns an error when the property is undefined", func() { _, err := container.Property("some-other-property") Expect(err).To(Equal(linux_container.UndefinedPropertyError{"some-other-property"}))