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