(self)
| 469 | assert_equal(A.tolist(), tgt) |
| 470 | |
| 471 | def test_rstrip(self): |
| 472 | assert_(issubclass(self.A.rstrip().dtype.type, np.bytes_)) |
| 473 | |
| 474 | tgt = [[b' abc', b''], |
| 475 | [b'12345', b'MixedCase'], |
| 476 | [b'123 \t 345', b'UPPER']] |
| 477 | assert_array_equal(self.A.rstrip(), tgt) |
| 478 | |
| 479 | tgt = [[b' abc ', b''], |
| 480 | [b'1234', b'MixedCase'], |
| 481 | [b'123 \t 345 \x00', b'UPP'] |
| 482 | ] |
| 483 | assert_array_equal(self.A.rstrip([b'5', b'ER']), tgt) |
| 484 | |
| 485 | tgt = [[' \u03a3', ''], |
| 486 | ['12345', 'MixedCase'], |
| 487 | ['123 \t 345', 'UPPER']] |
| 488 | assert_(issubclass(self.B.rstrip().dtype.type, np.str_)) |
| 489 | assert_array_equal(self.B.rstrip(), tgt) |
| 490 | |
| 491 | def test_strip(self): |
| 492 | tgt = [[b'abc', b''], |
nothing calls this directly
no test coverage detected