Exemple #1
0
    def test_yummy_renders_empty_item(self):
        #monday odd week
        actual_item = WeekMenu.objects.create(day=1, even_week=False)

        #monday, even week
        MockedDate.today = classmethod(lambda cls: date(2012, 1, 9))

        context = yummy_day_menu()

        tools.assert_equals(context['current_menu'], {})
Exemple #2
0
    def test_yummy_menu_context_items(self):
        context = yummy_day_menu()

        tools.assert_equals(context['current_menu'], {})
        tools.assert_equals(type(context['week_days']), tuple)