minor TODO comments
This commit is contained in:
parent
6aa7fe7c82
commit
992db1846c
|
@ -127,7 +127,8 @@ class Wormholes(ServerBase, unittest.TestCase):
|
||||||
|
|
||||||
version1 = yield w1.when_version()
|
version1 = yield w1.when_version()
|
||||||
version2 = yield w2.when_version()
|
version2 = yield w2.when_version()
|
||||||
# TODO: add the ability to set app-versions
|
# app-versions are exercised properly in test_versions, this just
|
||||||
|
# tests the defaults
|
||||||
self.assertEqual(version1, {})
|
self.assertEqual(version1, {})
|
||||||
self.assertEqual(version2, {})
|
self.assertEqual(version2, {})
|
||||||
|
|
||||||
|
|
|
@ -131,7 +131,10 @@ class _DeferredWormhole(object):
|
||||||
# from above
|
# from above
|
||||||
def when_code(self):
|
def when_code(self):
|
||||||
# TODO: consider throwing error unless one of allocate/set/input_code
|
# TODO: consider throwing error unless one of allocate/set/input_code
|
||||||
# was called first
|
# was called first. It's legit to grab the Deferred before triggering
|
||||||
|
# the process that will cause it to fire, but forbidding that
|
||||||
|
# ordering would make it easier to cause programming errors that
|
||||||
|
# forget to trigger it entirely.
|
||||||
if self._observer_result is not None:
|
if self._observer_result is not None:
|
||||||
return defer.fail(self._observer_result)
|
return defer.fail(self._observer_result)
|
||||||
if self._code is not None:
|
if self._code is not None:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user