#!/usr/bin/env python
#
#
# Compare a coral.Boolean to Python's True/False
#

import coral
L = coral.lang.UML14

a = L.AssociationEnd()

a.isNavigable = "false"
assert not a.isNavigable
assert a.isNavigable == False
assert a.isNavigable != True
assert not a.isNavigable == True
assert not a.isNavigable != False

a.isNavigable = "true"
assert a.isNavigable
assert a.isNavigable != False
assert a.isNavigable == True
assert not a.isNavigable != True
assert not a.isNavigable == False
