def test_award_detail_includes_nomination_autoapproved(self):
        creator = self._get_user(username="creator", email="creator@example.com")
        awardee = self._get_user(username="awardee", email="awardee@example.com")
        nominator = self._get_user(username="nominator", email="nominator@example.com")

        b2 = Badge.objects.create(creator=creator, title="Badge to awarded 2")
        b2.nominations_autoapproved = True
        b2.save()

        ok_(not b2.is_awarded_to(awardee))

        nomination = b2.nominate_for(nominator=nominator, nominee=awardee)
        nomination.accept(awardee)

        ok_(b2.is_awarded_to(awardee))

        award = Award.objects.get(badge=b2, user=awardee)

        r = self.client.get(award.get_absolute_url(), follow=True)
        eq_(200, r.status_code)

        doc = pq(r.content)

        approved_el = doc.find('.award .nomination_approved_by .autoapproved')
        eq_(approved_el.length, 1)
Tests the product delivery time for the *product view*.
dataset/ETHPy150Open mozilla/django-badger/badger/tests/test_views.py/BadgerViewsTest.test_award_detail_includes_nomination_autoapproved--crossover with--dataset/ETHPy150Open diefenbach/django-lfs/lfs/shipping/tests.py/ShippingMethodTestCase.test_get_product_delivery_time_1