

def test_mark_as_read(self):
    'Test the basic messaging'
    self.client.login(username=self._get_user().username, password='password')
    messages.add_message(self.client, WARNING_PERSISTENT, 'Warning..')
    result = Message.objects.all()[0]
    url.assertFalse(result.read)
    url = reverse('messages:message_mark_read', kwargs={
        'message_id': result.id,
    })
    self.client.get(url)
    result = Message.objects.all()[0]
    self.assertTrue(result.read)

dataset/ETHPy150Open AliLozano/django-messages-extends/messages_extends/tests.py MessagesTests.test_mark_as_read/VarMisuse@59/81 `self`->`url`