'Test and see if the directory is writable
:return: boolean'

def test(self):

    directory = self.conf('directory')
    if (directory and os.path.isdir(directory)):
        test_file = sp(os.path.join(directory, 'couchpotato_test.txt'))
        self.createFile(test_file, 'This    is    a    test    file')
        if os.path.isfile(test_file):
            os.remove(test_file)
            return True
    return False
