Skip to content

Commit

Permalink
- use AssociationEnd.navigability property where possible
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/arjan/backup/gaphor/gaphor/trunk@2262 a8418922-720d-0410-834f-a69b97ada669
  • Loading branch information
wrobell committed Mar 6, 2008
1 parent ae10199 commit e76016b
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions gaphor/diagram/classes/tests/test_association.py
Expand Up @@ -89,15 +89,15 @@ def test_navigability_at_class(self):

head = a._head_end

head._set_navigability(True)
head.navigability = True
assert head.subject.class_ == c2.subject
assert head.subject.owningAssociation is None

head._set_navigability(False)
head.navigability = False
assert head.subject.class_ is None
assert head.subject.owningAssociation == a.subject

head._set_navigability(None)
head.navigability = None
assert head.subject.class_ is None
assert head.subject.owningAssociation is None

Expand All @@ -120,15 +120,15 @@ def test_navigability_at_interface(self):

head = a._head_end

head._set_navigability(True)
head.navigability = True
assert head.subject.interface_ == c2.subject
assert head.subject.owningAssociation is None

head._set_navigability(False)
head.navigability = False
assert head.subject.interface_ is None
assert head.subject.owningAssociation == a.subject

head._set_navigability(None)
head.navigability = None
assert head.subject.interface_ is None
assert head.subject.owningAssociation is None

Expand All @@ -151,15 +151,15 @@ def test_navigability_at_classifier(self):

head = a._head_end

head._set_navigability(True)
head.navigability = True
assert head.subject.classifier == c2.subject
assert head.subject.owningAssociation is None

head._set_navigability(False)
head.navigability = False
assert head.subject.classifier is None
assert head.subject.owningAssociation == a.subject

head._set_navigability(None)
head.navigability = None
assert head.subject.classifier is None
assert head.subject.owningAssociation is None

Expand Down

0 comments on commit e76016b

Please sign in to comment.