(self)
| 257 | assert_array_equal(B.count('123'), [[0, 0], [1, 0], [1, 0]]) |
| 258 | |
| 259 | def test_endswith(self): |
| 260 | A = self.A() |
| 261 | assert_(issubclass(A.endswith('').dtype.type, np.bool)) |
| 262 | assert_array_equal(A.endswith(' '), [[1, 0], [0, 0], [1, 0]]) |
| 263 | assert_array_equal(A.endswith('3', 0, 3), [[0, 0], [1, 0], [1, 0]]) |
| 264 | |
| 265 | def fail(): |
| 266 | A.endswith('3', 'fdjk') |
| 267 | |
| 268 | assert_raises(TypeError, fail) |
| 269 | |
| 270 | @pytest.mark.parametrize( |
| 271 | "dtype, encode", |
nothing calls this directly
no test coverage detected