'Test directory_source.get_new_files() on an invalid path.'

def test_get_new_files_invalid_path(self):

    path = '/some/invalid/path'
    os.listdir.expect_call(path).and_raises(OSError('Error'))
    s = source.directory_source(self.db_mock, path)
    self.assertRaises(OSError, s.get_new_files)
    self.god.check_playback()
