def test_threads_ordered_by_most_recently_active(self):
        sender = self.create_user()
        group = self.create_group()
        sender.add_to_group(group.pk)

        thread1 = self.create_thread(sender=sender, group=group)
        thread1.first_message.created_at = datetime(2014, 10, 31, 1, 0, 0)
        thread1.first_message.save()

        thread2 = self.create_thread(sender=sender, group=group)
        thread2.first_message.created_at = datetime(2014, 10, 31, 2, 0, 0)
        thread2.first_message.save()

        thread3 = self.create_thread(sender=sender, group=group)
        thread3.first_message.created_at = datetime(2014, 10, 31, 3, 0, 0)
        thread3.first_message.save()

        thread4 = self.create_thread(sender=sender, group=group)
        thread4.first_message.created_at = datetime(2014, 10, 31, 4, 0, 0)
        thread4.first_message.save()

        self.login(sender)
        response = self.client.get(
            reverse('group_details', kwargs={'pk': group.pk}))

        # At this point thread1 should be out.
        self.assertQuerysetItemsEqual(
            response.context['public_threads'],
            Thread.objects.filter(pk__in=[thread2.pk, thread3.pk, thread4.pk])
        )

        # Add a new message to thread1.
        message = mommy.make(
            'connectmessages.Message',
            thread=thread1,
            sender=sender,
        )
        message.created_at = datetime(2014, 10, 31, 5, 0, 0)
        message.save()

        response = self.client.get(
            reverse('group_details', kwargs={'pk': group.pk}))

        # Now that thread1 is most recently active, it should be on the page.
        self.assertQuerysetItemsEqual(
            response.context['public_threads'],
            Thread.objects.filter(pk__in=[thread1.pk, thread3.pk, thread4.pk])
        )
A JID value should render to text if field type is text-single.
dataset/ETHPy150Open ofa/connect/open_connect/groups/tests/test_views.py/GroupDetailViewTest.test_threads_ordered_by_most_recently_active--crossover with--dataset/ETHPy150Open ralphm/wokkel/wokkel/test/test_data_form.py/FieldTest.test_toElementJIDTextSingle