472ebf9c88f2c21b94e0ec2b377957f1274d5fe7,tests/test_standardise.py,TestStandardise,test_clean_brackets,#TestStandardise#,68

Before Change


        s = StandardSeries(values)
        s.clean(remove_brackets=True)

        s_exp = StandardSeries(expected)

        pdt.assert_series_equal(s, s_exp)

    def test_value_occurence(self):

After Change



    def test_clean_brackets(self):

        values = pd.Series([np.nan, "bra(cke)ts", "brackets with (brackets)"])
        expected = pd.Series([np.nan, "brats", "brackets with"])

        clean_series = recordlinkage.clean(values, remove_brackets=True)
        
        // Check if series are identical.
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 6

Non-data size: 4

Instances


Project Name: J535D165/recordlinkage
Commit Name: 472ebf9c88f2c21b94e0ec2b377957f1274d5fe7
Time: 2016-02-06
Author: jonathandebruinhome@gmail.com
File Name: tests/test_standardise.py
Class Name: TestStandardise
Method Name: test_clean_brackets


Project Name: J535D165/recordlinkage
Commit Name: 472ebf9c88f2c21b94e0ec2b377957f1274d5fe7
Time: 2016-02-06
Author: jonathandebruinhome@gmail.com
File Name: tests/test_standardise.py
Class Name: TestStandardise
Method Name: test_clean_lower


Project Name: J535D165/recordlinkage
Commit Name: 472ebf9c88f2c21b94e0ec2b377957f1274d5fe7
Time: 2016-02-06
Author: jonathandebruinhome@gmail.com
File Name: tests/test_standardise.py
Class Name: TestStandardise
Method Name: test_clean


Project Name: J535D165/recordlinkage
Commit Name: 472ebf9c88f2c21b94e0ec2b377957f1274d5fe7
Time: 2016-02-06
Author: jonathandebruinhome@gmail.com
File Name: tests/test_standardise.py
Class Name: TestStandardise
Method Name: test_value_occurence


Project Name: J535D165/recordlinkage
Commit Name: 472ebf9c88f2c21b94e0ec2b377957f1274d5fe7
Time: 2016-02-06
Author: jonathandebruinhome@gmail.com
File Name: tests/test_standardise.py
Class Name: TestStandardise
Method Name: test_encode_nysiis


Project Name: J535D165/recordlinkage
Commit Name: 472ebf9c88f2c21b94e0ec2b377957f1274d5fe7
Time: 2016-02-06
Author: jonathandebruinhome@gmail.com
File Name: tests/test_standardise.py
Class Name: TestStandardise
Method Name: test_encode_soundex


Project Name: J535D165/recordlinkage
Commit Name: 472ebf9c88f2c21b94e0ec2b377957f1274d5fe7
Time: 2016-02-06
Author: jonathandebruinhome@gmail.com
File Name: tests/test_standardise.py
Class Name: TestStandardise
Method Name: test_clean_brackets