Ejemplo n.º 1
0
 def test_get_latest_with_unknown_files(self):
     """Should return highest number when called with list numbers and other files"""
     l = ['2009', '2010', '2011', 'Thumbs.db', '__MACOSX']
     self.assertEqual(2011, get_latest(l))
Ejemplo n.º 2
0
 def test_get_latest(self):
     """Should return highest number when called with list of number strings"""
     l = ['2009', '2010', '2011']
     self.assertEquals(get_latest(l), 2011)
     l = ['05', '06', '07']
     self.assertEqual(7, get_latest(l))