<commit_before>import unittest
from exporters.writers import FTPWriter


class FTPWriterTest(unittest.TestCase):

    def test_default_port_is_21(self):
        options = dict(options=dict(
            ftp_user='user',
            ftp_password='password',
            host='ftp.example.com',
            filebase='test/'))
        writer = FTPWriter(options)
        self.assertEquals(21, writer.read_option('port'))
        writer.close_writer()
<commit_msg>Adds failing test<commit_after>import unittest
from exporters.writers import FTPWriter


class FTPWriterTest(unittest.TestCase):

    def test_default_port_is_21(self):
        options = dict(options=dict(
            ftp_user='user',
            ftp_password='password',
            host='ftp.example.com',
            filebase='test/'))
        writer = FTPWriter(options)
        self.assertEquals(21, writer.read_option('port'))
        writer.close_writer()

    def test_not_path_filebase(self):
        options = dict(options=dict(
            ftp_user='user',
            ftp_password='password',
            host='ftp.example.com',
            filebase='test'))
        writer = FTPWriter(options)
        self.assertIs(writer._create_target_dir_if_needed(''), None)
        writer.close_writer()

{'fraction_non_alphanumeric': 0.11146245059288537, 'fraction_numerical': 0.006324110671936759, 'mean_word_length': 2.6802325581395348, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5738612', 'n_tokens_mistral': 380, 'n_tokens_neox': 356, 'n_words': 57}