Module: deluge Branch: 1.3-stable Commit: 79749cca037ec60c16a409133f72d2fe67ac8c7f
Author: Andrew Resch <[email protected]> Date: Wed Aug 18 11:05:21 2010 -0700 Add test to demonstrate flaw in SessionProxy design. Need to keep track of update times for each status key individually to fix this. --- tests/test_sessionproxy.py | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/tests/test_sessionproxy.py b/tests/test_sessionproxy.py index 1214214..d0e051e 100644 --- a/tests/test_sessionproxy.py +++ b/tests/test_sessionproxy.py @@ -110,3 +110,10 @@ class SessionProxyTestCase(unittest.TestCase): d = self.sp.get_torrent_status("a", []) d.addCallback(self.assertEquals, client.core.torrents["a"]) return d + + def test_get_torrent_status_key_not_updated(self): + self.sp.get_torrent_status("a", ["key1"]) + client.core.torrents["a"]["key2"] = 99 + d = self.sp.get_torrent_status("a", ["key2"]) + d.addCallback(self.assertEquals, {"key2": 99}) + return d -- You received this message because you are subscribed to the Google Groups "deluge-commit" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/deluge-commit?hl=en.
