(self)
| 38 | class DataTest(Test): |
| 39 | |
| 40 | def testTopLevelNext(self): |
| 41 | assert self.data.next() is None |
| 42 | self.data.put_null() |
| 43 | self.data.put_bool(False) |
| 44 | self.data.put_int(0) |
| 45 | assert self.data.next() is None |
| 46 | self.data.rewind() |
| 47 | assert self.data.next() == Data.NULL |
| 48 | assert self.data.next() == Data.BOOL |
| 49 | assert self.data.next() == Data.INT |
| 50 | assert self.data.next() is None |
| 51 | |
| 52 | def testNestedNext(self): |
| 53 | assert self.data.next() is None |