def test_has_read_and_last_read_at(self):
        user = self.create_user()
        self.client.login(username=user.email, password='moo')
        thread = self.create_thread(sender=user)
        user_thread = UserThread.objects.get(user=user, thread=thread)
        user_thread.read = True
        user_thread.last_read_at = datetime(2014, 04, 28, 12, 0, 0)
        user_thread.save()
        response = self.client.get(
            reverse('thread_details_json', kwargs={'pk': thread.pk}))
        json_response = json.loads(response.content)
        self.assertTrue(json_response['thread']['read'])
        self.assertTrue(json_response['connectmessages'][0]['read'])
Signout
dataset/ETHPy150Open ofa/connect/open_connect/connectmessages/tests/test_views.py/TestThreadJSONDetailView.test_has_read_and_last_read_at--crossover with--dataset/ETHPy150Open Akagi201/learning-python/flask/flask-boost/test/application/controllers/account.py/signout