Permalink
Browse files

More unittest fixes

  • Loading branch information...
1 parent c47e18e commit 3c60b5504a046000e749f047ffdd5dbac4bdef66 @amolenaar committed Jan 25, 2010
Showing with 3 additions and 1 deletion.
  1. +3 −1 gaphor/adapters/classes/tests/test_class.py
@@ -175,6 +175,8 @@ def test_connection(self):
def test_reconnection(self):
"""Test generalization item connection using two classes
+
+ On reconnection a new Generalization is created.
"""
gen = self.create(items.GeneralizationItem)
c1 = self.create(items.ClassItem, UML.Class)
@@ -200,7 +202,7 @@ def test_reconnection(self):
self.assertSame(cinfo.connected, c3)
self.connect(gen2, gen2.tail, c4)
- self.assertSame(gen.subject, gen2.subject)
+ self.assertNotSame(gen.subject, gen2.subject)
self.assertEquals(1, len(c1.subject.generalization))
self.assertSame(c1.subject.generalization[0], gen.subject)
#self.assertEquals(1, len(actor2.clientDependency))

0 comments on commit 3c60b55

Please sign in to comment.