BUG: contains was renamed to has_substring

This commit is contained in:
Scott Sanderson
2016-05-03 10:53:52 -04:00
parent 5cd7d79818
commit 7a65121e6e
+1 -1
View File
@@ -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