Permalink
Browse files

Fix the tests for Diagram to properly use identity morphism.

Identity morphisms were implemented after the tests for Diagram, so
there was a need to slightly correct them to properly use identities.
  • Loading branch information...
1 parent fa74c09 commit 7fcee708c1f25ce56bf766b3899bc0f586ab19ad @scolobb committed Jun 6, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 sympy/categories/tests/test_baseclasses.py
@@ -109,8 +109,8 @@ def test_diagram():
assert d1.list_objects() == FiniteSet(A, B)
assert d1.hom(A, B) == (FiniteSet(f), empty)
- assert d1.hom(A, A) == (FiniteSet(Morphism(A, A, "")), empty)
- assert d1.hom(B, B) == (FiniteSet(Morphism(B, B, "")), empty)
+ assert d1.hom(A, A) == (FiniteSet(Morphism(A, A, identity=True)), empty)
+ assert d1.hom(B, B) == (FiniteSet(Morphism(B, B, identity=True)), empty)
# Test the addition of composites.
d2 = Diagram()

0 comments on commit 7fcee70

Please sign in to comment.