func assertNotJoined(c *gc.C, ru *state.RelationUnit) { ok, err := ru.Joined() c.Assert(err, gc.IsNil) c.Assert(ok, jc.IsFalse) }
func assertJoined(c *gc.C, ru *state.RelationUnit) { assertInScope(c, ru) ok, err := ru.Joined() c.Assert(err, gc.IsNil) c.Assert(ok, jc.IsTrue) }