mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-02 22:48:40 +00:00
Add test to demonstrate flaw in SessionProxy design. Need to keep track of update times for each
status key individually to fix this.
This commit is contained in:
parent
5fd8628761
commit
79749cca03
1 changed files with 7 additions and 0 deletions
|
@ -110,3 +110,10 @@ class SessionProxyTestCase(unittest.TestCase):
|
||||||
d = self.sp.get_torrent_status("a", [])
|
d = self.sp.get_torrent_status("a", [])
|
||||||
d.addCallback(self.assertEquals, client.core.torrents["a"])
|
d.addCallback(self.assertEquals, client.core.torrents["a"])
|
||||||
return d
|
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue