예제 #1
0
func assertAnnotation(c *gc.C, st *state.State, entity state.GlobalEntity, key, expected string) {
	value, err := st.Annotation(entity, key)
	c.Assert(err, jc.ErrorIsNil)
	c.Assert(value, gc.DeepEquals, expected)
}