def test_stringify_action_nonexisting(self): obj = ACLEncoderMixin() assert obj._stringify_action('not allow') == 'not allow'
def test_stringify_action_existing(self): obj = ACLEncoderMixin() assert obj._stringify_action(Deny) == 'deny' assert obj._stringify_action(Allow) == 'allow'