summaryrefslogtreecommitdiff
path: root/morphlib/source_tests.py
diff options
context:
space:
mode:
authorLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-06-18 18:08:48 +0100
committerLars Wirzenius <lars.wirzenius@codethink.co.uk>2012-06-18 18:08:48 +0100
commitd4dbc27700b82d87894446027dd2d4f272ef3a05 (patch)
tree4e90aee1b8df1cda871bea9781da548d865303df /morphlib/source_tests.py
parentce160cb76d0537fb9efec804106b6fbfafcc9b56 (diff)
downloadmorph-d4dbc27700b82d87894446027dd2d4f272ef3a05.tar.gz
Remove dead code (dependencies in Source objects)
Diffstat (limited to 'morphlib/source_tests.py')
-rw-r--r--morphlib/source_tests.py22
1 files changed, 0 insertions, 22 deletions
diff --git a/morphlib/source_tests.py b/morphlib/source_tests.py
index a539da29..39635b6b 100644
--- a/morphlib/source_tests.py
+++ b/morphlib/source_tests.py
@@ -58,26 +58,4 @@ class SourceTests(unittest.TestCase):
def test_sets_filename(self):
self.assertEqual(self.source.filename, self.filename)
-
- def test_sets_dependencies_to_empty(self):
- self.assertEqual(self.source.dependencies, [])
-
- def test_sets_dependents_to_empty(self):
- self.assertEqual(self.source.dependents, [])
-
- def test_does_not_depend_on_other_initially(self):
- self.assertFalse(self.source.depends_on(self.other))
-
- def test_adds_dependency(self):
- self.source.add_dependency(self.other)
- self.assertEqual(self.source.dependencies, [self.other])
- self.assertEqual(self.other.dependents, [self.source])
- self.assertTrue(self.source.depends_on(self.other))
-
- def test_does_not_add_dependency_twice(self):
- self.source.add_dependency(self.other)
- self.source.add_dependency(self.other)
- self.assertEqual(self.source.dependencies, [self.other])
- self.assertEqual(self.other.dependents, [self.source])
- self.assertTrue(self.source.depends_on(self.other))