summaryrefslogtreecommitdiff
path: root/morphlib/cachekeycomputer_tests.py
diff options
context:
space:
mode:
authorRichard Maw <richard.maw@codethink.co.uk>2012-05-17 14:55:47 +0000
committerRichard Maw <richard.maw@codethink.co.uk>2012-05-18 09:13:40 +0000
commitaa1ae3333d723b7bf91beab4f357c1cb99ecf742 (patch)
treee733186a0df4cd4624130e96603e1d77f520381f /morphlib/cachekeycomputer_tests.py
parentac7e1908daa969e7fcd16ad9e5a80b34b92417ad (diff)
downloadmorph-aa1ae3333d723b7bf91beab4f357c1cb99ecf742.tar.gz
CacheKeyComputer: re-use dict hash logic for morphology hashing
CacheKeyComputer already re-invents the wheel for hashing a dict, so re-use that logic rather than re-implement it as creating a huge string.
Diffstat (limited to 'morphlib/cachekeycomputer_tests.py')
-rw-r--r--morphlib/cachekeycomputer_tests.py13
1 files changed, 0 insertions, 13 deletions
diff --git a/morphlib/cachekeycomputer_tests.py b/morphlib/cachekeycomputer_tests.py
index 32aef02e..807fbe89 100644
--- a/morphlib/cachekeycomputer_tests.py
+++ b/morphlib/cachekeycomputer_tests.py
@@ -166,17 +166,4 @@ class CacheKeyComputerTests(unittest.TestCase):
old_sha = self.ckc.compute_key(old_artifact)
new_sha = self.ckc.compute_key(new_artifact)
self.assertEqual(old_sha, new_sha)
-
- def test_stringifies_string(self):
- self.assertEqual(self.ckc._stringify('foo'), 'foo')
-
- def test_stringifies_integer(self):
- self.assertEqual(self.ckc._stringify(12765), '12765')
-
- def test_stringifies_dict(self):
- self.assertEqual(self.ckc._stringify({'foo': 'bar', 'yo': 'foobar' }),
- '{foo:bar,yo:foobar}')
-
- def test_stringifies_list(self):
- self.assertEqual(self.ckc._stringify(['foo', 'bar']), '[foo,bar]')