def test_update_thru_date(self): new_val = '2018-12-01' new_date = datetime.date(2018, 12, 1) update_through_date_constant(new_val) self.assertEqual( MortgageDataConstant.objects.get(name='through_date').date_value, new_date)
def test_update_thru_date(self): new_val = '2018-12-01' new_date = datetime.date(2018, 12, 1) update_through_date_constant(new_val) self.assertEqual( MortgageDataConstant.objects.get(name='through_date').date_value, new_date)
def test_update_through_date_constant(self): new_date = datetime.date(2016, 9, 1) update_through_date_constant(new_date) self.assertEqual( new_date, MortgageDataConstant.objects.get(name='through_date').date_value)
def test_update_through_date_constant(self): new_date = datetime.date(2016, 9, 1) update_through_date_constant(new_date) self.assertEqual( new_date, MortgageDataConstant.objects.get(name='through_date').date_value)