Parse booleans according to the xs:boolean spec

'True', 'False' or '' aren’t valid values.

Also use this helper in more locations.
2 jobs for booleans in 10 seconds
Status Job ID Name Coverage
  Test
failed #16522
run-test

00:00:10

 
  Build
skipped #16523
run-build
 
Name Stage Failure
failed
run-test Test
    from nbxmpp.util import from_xs_boolean
ImportError: cannot import name 'from_xs_boolean' from partially initialized module 'nbxmpp.util' (most likely due to a circular import) (/home/gitlab-runner/builds/c0eaa480/0/linkmauve/python-nbxmpp/nbxmpp/util.py)


----------------------------------------------------------------------
Ran 20 tests in 0.014s

FAILED (errors=12)
ERROR: Job failed: exit status 1