DEP: Removes unnecessary identifier_cache from asset_finder

The identifier cache's usage was nearly identical to using lookup_generic, so this commit removes identifier-keyed caching and modifies anything that uses it.
This commit is contained in:
jfkirk
2015-07-01 13:43:31 -04:00
parent 0769e7698b
commit 31f24a238a
5 changed files with 24 additions and 43 deletions
+6 -2
View File
@@ -22,6 +22,7 @@ from unittest import TestCase
from datetime import (
timedelta,
datetime
)
import pickle
import pprint
@@ -542,9 +543,12 @@ class AssetFinderTestCase(TestCase):
# Build a finder that is allowed to assign sids
finder = AssetFinder(metadata=metadata, allow_sid_assignment=True)
# Verify that Assets were built
play = finder.retrieve_asset_by_identifier('PLAY')
# Verify that Assets were built and different sids were assigned
play = finder.lookup_symbol('PLAY', datetime.now())
msft = finder.lookup_symbol('MSFT', datetime.now())
self.assertEqual('PLAY', play.symbol)
self.assertIsNotNone(play.sid)
self.assertNotEqual(play.sid, msft.sid)
def test_sid_assignment_failure(self):