(self)
| 298 | assert_(issubclass(np.char.rindex('abcba', 'b').dtype.type, np.integer)) |
| 299 | |
| 300 | def test_startswith(self): |
| 301 | assert_(issubclass(self.A.startswith('').dtype.type, np.bool_)) |
| 302 | assert_array_equal(self.A.startswith(' '), [[1, 0], [0, 0], [0, 0]]) |
| 303 | assert_array_equal(self.A.startswith('1', 0, 3), [[0, 0], [1, 0], [1, 0]]) |
| 304 | |
| 305 | def fail(): |
| 306 | self.A.startswith('3', 'fdjk') |
| 307 | |
| 308 | assert_raises(TypeError, fail) |
| 309 | |
| 310 | |
| 311 | class TestMethods: |
nothing calls this directly
no test coverage detected