From 7a65121e6e31b12df648ef8fd57bb68660aff96b Mon Sep 17 00:00:00 2001 From: Scott Sanderson Date: Tue, 3 May 2016 10:53:52 -0400 Subject: [PATCH] BUG: contains was renamed to has_substring --- tests/test_labelarray.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_labelarray.py b/tests/test_labelarray.py index 5b24659f..2f4a8967 100644 --- a/tests/test_labelarray.py +++ b/tests/test_labelarray.py @@ -61,7 +61,7 @@ class LabelArrayTestCase(ZiplineTestCase): check_arrays(arr.endswith(s), np_endswith(strs)) np_contains = np.vectorize(lambda elem: s in elem) - check_arrays(arr.contains(s), np_contains(strs)) + check_arrays(arr.has_substring(s), np_contains(strs)) def test_compare_to_str_array(self): strs = self.strs