Exemplo n.º 1
0
 def test_7(self):
     date = "n. 1630"
     year = artists.year_from_date(date)
     self.assertEqual(year, 1630)
Exemplo n.º 2
0
 def test_5(self):
     date = "1700?"
     year = artists.year_from_date(date)
     self.assertEqual(year, 1700)
Exemplo n.º 3
0
 def test_6(self):
     date = "(1500)"
     year = artists.year_from_date(date)
     self.assertEqual(year, 1500)
Exemplo n.º 4
0
 def test_4(self):
     date = "1741 (jälkeen)"
     year = artists.year_from_date(date)
     self.assertEqual(year, 1741)
Exemplo n.º 5
0
 def test_3(self):
     date = None
     year = artists.year_from_date(date)
     self.assertIsNone(year)
Exemplo n.º 6
0
 def test_2(self):
     date = "1699"
     year = artists.year_from_date(date)
     self.assertEqual(year, 1699)
Exemplo n.º 7
0
 def test_1(self):
     date = "1895-04-02"
     year = artists.year_from_date(date)
     self.assertEqual(year, 1895)
Exemplo n.º 8
0
 def test_3(self):
     date = None
     year = artists.year_from_date(date)
     self.assertEqual(year, None)