Did I find the right examples for you? yes no

All Samples(2)  |  Call(1)  |  Derive(0)  |  Import(1)

src/d/j/django-reservations-HEAD/reservations/tests.py   django-reservations(Download)
from django.test import TestCase
from models import Reservation, SimpleReservation, Holiday
from django.core.urlresolvers import reverse
from django.test.client import Client
from django.test.utils import override_settings
    def test_holiday(self):
        """User should not be able to make a reservation on holiday day"""
        # Create a holiday
        holiday = Holiday(name="Test Holiday", active=True, date=dt.date(2032, 12, 13))
        holiday.save()