summaryrefslogtreecommitdiff
path: root/morphlib/blobs.py
diff options
context:
space:
mode:
authorJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-01-19 11:14:45 +0000
committerJannis Pohlmann <jannis.pohlmann@codethink.co.uk>2012-01-19 12:07:46 +0000
commit0bfeb10ace73a559734cf7e34063e9ff1b8f525f (patch)
tree9388cdcf10a5da3b22ed4c2991b5938110ee8f67 /morphlib/blobs.py
parent1766cf24335a07c96b27a81664be899f7f8964ca (diff)
downloadmorph-0bfeb10ace73a559734cf7e34063e9ff1b8f525f.tar.gz
Create tests for the blob classes.
Diffstat (limited to 'morphlib/blobs.py')
-rw-r--r--morphlib/blobs.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/morphlib/blobs.py b/morphlib/blobs.py
index 6ddcaf0c..1732f000 100644
--- a/morphlib/blobs.py
+++ b/morphlib/blobs.py
@@ -25,6 +25,9 @@ class Blob(object):
def add_parent(self, parent):
self.parents.append(parent)
+ def remove_parent(self, parent):
+ self.parents.remove(parent)
+
def add_dependency(self, other):
self.dependencies.append(other)
other.dependents.append(self)
@@ -43,7 +46,7 @@ class Blob(object):
else:
return { self.morph.name: ['.'] }
- def __str__(self):
+ def __str__(self): # pragma: no cover
return str(self.morph)