def test10(self): self.assertEqual( get_weekday_n_days_ago(datetime.strptime("2020-05-08", '%Y-%m-%d'), 5), datetime.strptime("2020-04-30", '%Y-%m-%d'))
def test8(self): self.assertEqual( get_weekday_n_days_ago(datetime.strptime("2020-05-26", '%Y-%m-%d'), 1), datetime.strptime("2020-05-25", '%Y-%m-%d'))
def test9(self): self.assertEqual( get_weekday_n_days_ago(datetime.strptime("2020-04-27", '%Y-%m-%d'), 20), datetime.strptime("2020-03-30", '%Y-%m-%d'))
def test7(self): self.assertEqual( get_weekday_n_days_ago(datetime.strptime("2020-05-24", '%Y-%m-%d'), 15), datetime.strptime("2020-05-04", '%Y-%m-%d'))