Ejemplo n.º 1
0
 def test_constructor_bad_path(self):
     """
     An Organizer given a bad path raises a NotADirectoryError
     """
     with self.assertRaises(NotADirectoryError):
         org = organizer.Organizer(self.DATE, 'foo')
Ejemplo n.º 2
0
 def test_constructor_bad_date(self):
     """
     An Organizer given a bad date parameter raises a TypeError
     """
     with self.assertRaises(TypeError):
         org = organizer.Organizer('foo', os.path.join('test', 'pictures'))