tracks/python/exercises/meetup/meetup_test.py in trackler-2.0.8.27 vs tracks/python/exercises/meetup/meetup_test.py in trackler-2.0.8.28

- old
+ new

@@ -1,7 +1,7 @@ -from datetime import date import unittest +from datetime import date from meetup import meetup_day try: from meetup import MeetupDayException @@ -9,59 +9,59 @@ MeetupDayException = Exception class MeetupTest(unittest.TestCase): def test_monteenth_of_may_2013(self): - self.assertEqual(date(2013, 5, 13), - meetup_day(2013, 5, 'Monday', 'teenth')) + self.assertEqual( + meetup_day(2013, 5, 'Monday', 'teenth'), date(2013, 5, 13)) def test_saturteenth_of_february_2013(self): - self.assertEqual(date(2013, 2, 16), - meetup_day(2013, 2, 'Saturday', 'teenth')) + self.assertEqual( + meetup_day(2013, 2, 'Saturday', 'teenth'), date(2013, 2, 16)) def test_first_tuesday_of_may_2013(self): - self.assertEqual(date(2013, 5, 7), - meetup_day(2013, 5, 'Tuesday', '1st')) + self.assertEqual( + meetup_day(2013, 5, 'Tuesday', '1st'), date(2013, 5, 7)) def test_second_monday_of_april_2013(self): - self.assertEqual(date(2013, 4, 8), - meetup_day(2013, 4, 'Monday', '2nd')) + self.assertEqual( + meetup_day(2013, 4, 'Monday', '2nd'), date(2013, 4, 8)) def test_third_thursday_of_september_2013(self): - self.assertEqual(date(2013, 9, 19), - meetup_day(2013, 9, 'Thursday', '3rd')) + self.assertEqual( + meetup_day(2013, 9, 'Thursday', '3rd'), date(2013, 9, 19)) def test_fourth_sunday_of_march_2013(self): - self.assertEqual(date(2013, 3, 24), - meetup_day(2013, 3, 'Sunday', '4th')) + self.assertEqual( + meetup_day(2013, 3, 'Sunday', '4th'), date(2013, 3, 24)) def test_last_thursday_of_october_2013(self): - self.assertEqual(date(2013, 10, 31), - meetup_day(2013, 10, 'Thursday', 'last')) + self.assertEqual( + meetup_day(2013, 10, 'Thursday', 'last'), date(2013, 10, 31)) def test_last_wednesday_of_february_2012(self): - self.assertEqual(date(2012, 2, 29), - meetup_day(2012, 2, 'Wednesday', 'last')) + self.assertEqual( + meetup_day(2012, 2, 'Wednesday', 'last'), date(2012, 2, 29)) def test_last_wednesday_of_december_2014(self): - self.assertEqual(date(2014, 12, 31), - meetup_day(2014, 12, 'Wednesday', 'last')) + self.assertEqual( + meetup_day(2014, 12, 'Wednesday', 'last'), date(2014, 12, 31)) def test_last_sunday_of_only_four_week_february_2015(self): - self.assertEqual(date(2015, 2, 22), - meetup_day(2015, 2, 'Sunday', 'last')) + self.assertEqual( + meetup_day(2015, 2, 'Sunday', 'last'), date(2015, 2, 22)) def test_first_friday_of_december_2012(self): - self.assertEqual(date(2012, 12, 7), - meetup_day(2012, 12, 'Friday', '1st')) + self.assertEqual( + meetup_day(2012, 12, 'Friday', '1st'), date(2012, 12, 7)) def test_fifth_monday_of_march_2015(self): - self.assertEqual(date(2015, 3, 30), - meetup_day(2015, 3, 'Monday', '5th')) + self.assertEqual( + meetup_day(2015, 3, 'Monday', '5th'), date(2015, 3, 30)) def test_nonexistent_fifth_monday_of_february_2015(self): - self.assertRaises(MeetupDayException, meetup_day, - 2015, 2, 'Monday', '5th') + self.assertRaises(MeetupDayException, meetup_day, 2015, 2, 'Monday', + '5th') if __name__ == '__main__': unittest.main()