def test_get_date_from_int(self):
     date = int_date.get_date_from_int(20120515)
     assert_that(date.year, equal_to(2012))
     assert_that(date.month, equal_to(5))
     assert_that(date.day, equal_to(15))
 def test_get_date_from_int_error(self):
     with self.assertRaises(ValueError):
         int_date.get_date_from_int(20120532)