def test_have_role_no(): troops.roles.add('foo') got = troops.have_role('bar') eq(got, False)
def test_have_role_yes(): troops.roles.add('foo') got = troops.have_role('foo') eq(got, True)