func assertNotInScope(c *gc.C, ru *state.RelationUnit) { assertNotJoined(c, ru) ok, err := ru.InScope() c.Assert(err, jc.ErrorIsNil) c.Assert(ok, jc.IsFalse) }
func (s *uniterSuite) assertInScope(c *gc.C, relUnit *state.RelationUnit, inScope bool) { ok, err := relUnit.InScope() c.Assert(err, jc.ErrorIsNil) c.Assert(ok, gc.Equals, inScope) }
func assertInScope(c *gc.C, ru *state.RelationUnit) { ok, err := ru.InScope() c.Assert(err, jc.ErrorIsNil) c.Assert(ok, jc.IsTrue) }