(self)
| 84 | warn = False |
| 85 | |
| 86 | def test_valid(self): |
| 87 | for s in ['big', '>']: |
| 88 | self._check(s, 'NPY_BIG') |
| 89 | for s in ['little', '<']: |
| 90 | self._check(s, 'NPY_LITTLE') |
| 91 | for s in ['native', '=']: |
| 92 | self._check(s, 'NPY_NATIVE') |
| 93 | for s in ['ignore', '|']: |
| 94 | self._check(s, 'NPY_IGNORE') |
| 95 | for s in ['swap']: |
| 96 | self._check(s, 'NPY_SWAP') |
| 97 | |
| 98 | |
| 99 | class TestSortkindConverter(StringConverterTestCase): |