Esempio n. 1
0
func assertNotJoined(c *gc.C, ru *state.RelationUnit) {
	ok, err := ru.Joined()
	c.Assert(err, gc.IsNil)
	c.Assert(ok, jc.IsFalse)
}
Esempio n. 2
0
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)
}