def test_2_digit_year_entry(self, _):
     field = YearField()
     for year in range(100):
         if year <= 6:
             self.assertEqual(field.clean(year), year + 2000)
         else:
             self.assertEqual(field.clean(year), year + 1900)
 def test_2_digit_year_entry(self, _):
     field = YearField()
     for year in range(100):
         if year <= 6:
             self.assertEqual(field.clean(year), year + 2000)
         else:
             self.assertEqual(field.clean(year), year + 1900)
 def test_2_digit_year_entry_next_century(self, _):
     era_boundary = 70  # make it 11 years prior as opposed to 10
     field = YearField(era_boundary=era_boundary)
     for year in range(100):
         if year <= era_boundary:
             self.assertEqual(field.clean(year), year + 2100)
         else:
             self.assertEqual(field.clean(year), year + 2000)
 def test_2_digit_year_entry_next_century(self, _):
     era_boundary = 70  # make it 11 years prior as opposed to 10
     field = YearField(era_boundary=era_boundary)
     for year in range(100):
         if year <= era_boundary:
             self.assertEqual(field.clean(year), year + 2100)
         else:
             self.assertEqual(field.clean(year), year + 2000)