def test_bad_parse_3(self):
     with self.assertRaises(ValueError):
         _ = Date.parse(object())
 def test_bad_parse_1(self):
     with self.assertRaises(ValueError):
         _ = Date.parse("30 April 2018")
 def test_bad_parse_2(self):
     with self.assertRaises(ValueError):
         _ = Date.parse("2018-04")
 def test_parse(self):
     d = Date.parse("2018-04-30")
     self.assertEqual(d, Date(2018, 4, 30))