diff options
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/integration/test_statefile.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/integration/test_statefile.py b/tests/integration/test_statefile.py index 2a2d147..9f6db01 100644 --- a/tests/integration/test_statefile.py +++ b/tests/integration/test_statefile.py | |||
| @@ -30,6 +30,7 @@ class StateFileRoundTrip(TrackerTestCase): | |||
| 30 | files = restarted.scrape(info_hash)[b"files"] | 30 | files = restarted.scrape(info_hash)[b"files"] |
| 31 | self.assertIn(info_hash, files, "the torrent did not survive the restart") | 31 | self.assertIn(info_hash, files, "the torrent did not survive the restart") |
| 32 | entry = files[info_hash] | 32 | entry = files[info_hash] |
| 33 | self.assertEqual(entry[b"downloaded"], 1, "the completed count did not survive") | ||
| 33 | self.assertEqual(entry[b"complete"], 0, "no peers are carried over, only the torrent") | 34 | self.assertEqual(entry[b"complete"], 0, "no peers are carried over, only the torrent") |
| 34 | self.assertEqual(entry[b"incomplete"], 0) | 35 | self.assertEqual(entry[b"incomplete"], 0) |
| 35 | complaints = restarted.stop() | 36 | complaints = restarted.stop() |
