'Testing various getters and setters in DownloadState'

def test_getters_setters_1(self):

    download_state = DownloadState(self.mock_download, DLSTATUS_DOWNLOADING, None, 0.5)
    self.assertEqual(download_state.get_download(), self.mock_download)
    self.assertEqual(download_state.get_progress(), 0.5)
    self.assertEqual(download_state.get_status(), DLSTATUS_DOWNLOADING)
    self.assertIsNone(download_state.get_error())
    self.assertEqual(download_state.get_current_speed(UPLOAD), 0)
    self.assertEqual(download_state.get_total_transferred(UPLOAD), 0)
    self.assertEqual(download_state.get_num_peers(), 0)
    self.assertEqual(download_state.get_num_nonseeds(), 0)
    self.assertEqual(download_state.get_num_seeds_peers(), (0, 0))
    self.assertEqual(download_state.get_vod_prebuffering_progress_consec(), 0)
    self.assertEqual(download_state.get_vod_prebuffering_progress(), 0)
    download_state.status = DLSTATUS_STOPPED
    download_state.progress = 1.0
    self.assertEqual(download_state.get_vod_prebuffering_progress_consec(), 1.0)
    self.assertEqual(download_state.get_vod_prebuffering_progress(), 1.0)
    self.assertFalse(download_state.is_vod())
    self.assertEqual(download_state.get_peerlist(), [])
    self.assertEqual(download_state.get_tracker_status(), {})
