def test_get(self):
        notification = Notification.objects.all()[0]

        response = self.client.get('/api/1.0/notification/%i/' % notification.id, **self.auth_headers) 

        self.assertEqual(response.status_code, 200)

        body = json.loads(response.content)

        sent_at = datetime.strptime(body['sent_at'], "%Y-%m-%dT%H:%M:%S").replace(tzinfo=pytz.timezone('Etc/UTC'))
        self.assertEqual(sent_at, notification.sent_at.replace(microsecond=0))
        self.assertEqual(body['read_at'], None)
        self.assertEqual(body['message'], notification.message)
dataset/ETHPy150Open pandaproject/panda/panda/tests/test_api_notification.py/TestAPINotifications.test_get/original