(self)
| 238 | assert_raises(TypeError, fail) |
| 239 | |
| 240 | def test_find(self): |
| 241 | assert_(issubclass(self.A.find('a').dtype.type, np.integer)) |
| 242 | assert_array_equal(self.A.find('a'), [[1, -1], [-1, 6], [-1, -1]]) |
| 243 | assert_array_equal(self.A.find('3'), [[-1, -1], [2, -1], [2, -1]]) |
| 244 | assert_array_equal(self.A.find('a', 0, 2), [[1, -1], [-1, -1], [-1, -1]]) |
| 245 | assert_array_equal(self.A.find(['1', 'P']), [[-1, -1], [0, -1], [0, 1]]) |
| 246 | |
| 247 | def test_index(self): |
| 248 |
nothing calls this directly
no test coverage detected