Пример #1
0
def test_have_role_no():
    troops.roles.add('foo')
    got = troops.have_role('bar')
    eq(got, False)
Пример #2
0
def test_have_role_yes():
    troops.roles.add('foo')
    got = troops.have_role('foo')
    eq(got, True)