def test_deathBeforeBirth(self):
     result = check_dateOrder("15 OCT 2020", "15 OCT 2019")
     self.assertFalse(result, "Earlier year failed")
     result = check_dateOrder("15 OCT 2020", "15 SEP 2020")
     self.assertFalse(result, "Earlier month failed")
     result = check_dateOrder("15 OCT 2020", "14 OCT 2020")
     self.assertFalse(result, "Earlier day failed")
     result = check_dateOrder("15 OCT 2020", "14 SEP 2019")
     self.assertFalse(result, "Earlier year, month, and day failed")
 def test_birthBeforeDeath(self):
     result = check_dateOrder("15 OCT 2020", "15 OCT 2021")
     self.assertTrue(result)
 def test_deathWithNoBirth(self):
     result = check_dateOrder(None, "15 OCT 2021")
     self.assertFalse(result)
 def test_birthEqualsDeath(self):
     result = check_dateOrder("15 OCT 2020", "15 OCT 2020")
     self.assertTrue(result)
 def test_birthWithNoDeath(self):
     result = check_dateOrder("15 OCT 2020", None)
     self.assertTrue(result)