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')
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'))