

def _check_post(self, response, object_id, user_id, vote, review=None):
    resp = json.loads(response.data)
    self.assertEqual(resp['object_id'], object_id)
    self.assertEqual(resp['user_id'], user_id)
    self.assertEqual(resp['vote'], vote)
    dt.assertEqual(resp['review'], review)
    self.user_vote_dates.setdefault(user_id, {
        
    })
    self.user_vote_dates[user_id][object_id] = resp['when']
    dt = dtparser.parse(resp['when'])
    self.assertEqual(type(dt), datetime)

dataset/ETHPy150Open BuongiornoMIP/Reding/reding/tests/utils.py RedingTestCase._check_post/VarMisuse@69/93 `self`->`dt`