def _check_cache_entry(self, entry):
    'Assert validity of the cache entry.'
    self.assertIsInstance(entry.site, BaseSite)
    self.assertIsInstance(entry.site._loginstatus, int)
    self.assertIsInstance(entry.site._username, list)
    if (entry.site._loginstatus >= 1):
        self.assertIsNotNone(entry.site._username[0])
    self.assertIsInstance(entry._params, dict)
    self.assertIsNotNone(entry._params)
Assert validity of the cache entry.
def _check_cache_entry(self, entry):
    
    self.assertIsInstance(entry.site, BaseSite)
    self.assertIsInstance(entry.site._loginstatus, int)
    self.assertIsInstance(entry.site._username, list)
    if (entry.site._loginstatus >= 1):
        self.assertIsNotNone(entry.site._username[0])
    self.assertIsInstance(entry._params, dict)
    self.assertIsNotNone(entry._params)