def test_return_a_day(self): ''' Testing our return back a day function... running over the things expected to work in the docstring ''' days_of_week = settings.days_of_the_week today_as_digit = datetime.datetime.now().weekday() today_as_day = days_of_week[today_as_digit] self.assertEqual(return_day.decipher_day(), today_as_day, 'Expected passing nothing to return back today\'s day') counter = 0 for day in days_of_week: self.assertEqual(return_day.decipher_day(day), day, 'Expected: string day (%s) to match' % day) self.assertEqual(return_day.decipher_day(counter), day, 'Expected: digit day (%s) to match' % counter) counter += 1
def days_soup(day = None): return soups[return_day.decipher_day(day)]
def days_soup(day = None): return pairs_of_soup[return_day.decipher_day(day)]