1
0
mirror of https://github.com/cmur2/python-bme280.git synced 2024-12-23 08:54:21 +01:00
python-bme280/tests/snapshots/snap_bme280_test.py

3053 lines
30 KiB
Python
Raw Normal View History

# -*- coding: utf-8 -*-
# snapshottest: v1 - https://goo.gl/zC4yUc
from __future__ import unicode_literals
from snapshottest import Snapshot
snapshots = Snapshot()
snapshots['TestBme280::test_chip_id 1'] = [
(
'w',
118,
136
),
(
'r',
118,
0
),
(
'w',
118,
137
),
(
'r',
118,
0
),
(
'w',
118,
138
),
(
'r',
118,
0
),
(
'w',
118,
139
),
(
'r',
118,
0
),
(
'w',
118,
140
),
(
'r',
118,
0
),
(
'w',
118,
141
),
(
'r',
118,
0
),
(
'w',
118,
142
),
(
'r',
118,
0
),
(
'w',
118,
143
),
(
'r',
118,
0
),
(
'w',
118,
144
),
(
'r',
118,
0
),
(
'w',
118,
145
),
(
'r',
118,
0
),
(
'w',
118,
146
),
(
'r',
118,
0
),
(
'w',
118,
147
),
(
'r',
118,
0
),
(
'w',
118,
148
),
(
'r',
118,
0
),
(
'w',
118,
149
),
(
'r',
118,
0
),
(
'w',
118,
150
),
(
'r',
118,
0
),
(
'w',
118,
151
),
(
'r',
118,
0
),
(
'w',
118,
152
),
(
'r',
118,
0
),
(
'w',
118,
153
),
(
'r',
118,
0
),
(
'w',
118,
154
),
(
'r',
118,
0
),
(
'w',
118,
155
),
(
'r',
118,
0
),
(
'w',
118,
156
),
(
'r',
118,
0
),
(
'w',
118,
157
),
(
'r',
118,
0
),
(
'w',
118,
158
),
(
'r',
118,
0
),
(
'w',
118,
159
),
(
'r',
118,
0
),
(
'w',
118,
161
),
(
'r',
118,
0
),
(
'w',
118,
225
),
(
'r',
118,
0
),
(
'w',
118,
226
),
(
'r',
118,
0
),
(
'w',
118,
227
),
(
'r',
118,
0
),
(
'w',
118,
228
),
(
'r',
118,
0
),
(
'w',
118,
229
),
(
'r',
118,
0
),
(
'w',
118,
230
),
(
'r',
118,
0
),
(
'w',
118,
231
),
(
'r',
118,
0
),
(
'w',
118,
242
),
(
'w',
118,
1
),
(
'w',
118,
244
),
(
'w',
118,
36
),
(
'w',
118,
245
),
(
'w',
118,
160
),
(
'w',
118,
208
),
(
'r',
118,
35
)
]
snapshots['TestBme280::test_config 1'] = [
(
'w',
118,
136
),
(
'r',
118,
0
),
(
'w',
118,
137
),
(
'r',
118,
0
),
(
'w',
118,
138
),
(
'r',
118,
0
),
(
'w',
118,
139
),
(
'r',
118,
0
),
(
'w',
118,
140
),
(
'r',
118,
0
),
(
'w',
118,
141
),
(
'r',
118,
0
),
(
'w',
118,
142
),
(
'r',
118,
0
),
(
'w',
118,
143
),
(
'r',
118,
0
),
(
'w',
118,
144
),
(
'r',
118,
0
),
(
'w',
118,
145
),
(
'r',
118,
0
),
(
'w',
118,
146
),
(
'r',
118,
0
),
(
'w',
118,
147
),
(
'r',
118,
0
),
(
'w',
118,
148
),
(
'r',
118,
0
),
(
'w',
118,
149
),
(
'r',
118,
0
),
(
'w',
118,
150
),
(
'r',
118,
0
),
(
'w',
118,
151
),
(
'r',
118,
0
),
(
'w',
118,
152
),
(
'r',
118,
0
),
(
'w',
118,
153
),
(
'r',
118,
0
),
(
'w',
118,
154
),
(
'r',
118,
0
),
(
'w',
118,
155
),
(
'r',
118,
0
),
(
'w',
118,
156
),
(
'r',
118,
0
),
(
'w',
118,
157
),
(
'r',
118,
0
),
(
'w',
118,
158
),
(
'r',
118,
0
),
(
'w',
118,
159
),
(
'r',
118,
0
),
(
'w',
118,
161
),
(
'r',
118,
0
),
(
'w',
118,
225
),
(
'r',
118,
0
),
(
'w',
118,
226
),
(
'r',
118,
0
),
(
'w',
118,
227
),
(
'r',
118,
0
),
(
'w',
118,
228
),
(
'r',
118,
0
),
(
'w',
118,
229
),
(
'r',
118,
0
),
(
'w',
118,
230
),
(
'r',
118,
0
),
(
'w',
118,
231
),
(
'r',
118,
0
),
(
'w',
118,
242
),
(
'w',
118,
1
),
(
'w',
118,
244
),
(
'w',
118,
36
),
(
'w',
118,
245
),
(
'w',
118,
160
),
(
'w',
118,
245
),
(
'w',
118,
224
),
(
'w',
118,
245
),
(
'w',
118,
240
)
]
snapshots['TestBme280::test_mode 1'] = [
(
'w',
118,
136
),
(
'r',
118,
0
),
(
'w',
118,
137
),
(
'r',
118,
0
),
(
'w',
118,
138
),
(
'r',
118,
0
),
(
'w',
118,
139
),
(
'r',
118,
0
),
(
'w',
118,
140
),
(
'r',
118,
0
),
(
'w',
118,
141
),
(
'r',
118,
0
),
(
'w',
118,
142
),
(
'r',
118,
0
),
(
'w',
118,
143
),
(
'r',
118,
0
),
(
'w',
118,
144
),
(
'r',
118,
0
),
(
'w',
118,
145
),
(
'r',
118,
0
),
(
'w',
118,
146
),
(
'r',
118,
0
),
(
'w',
118,
147
),
(
'r',
118,
0
),
(
'w',
118,
148
),
(
'r',
118,
0
),
(
'w',
118,
149
),
(
'r',
118,
0
),
(
'w',
118,
150
),
(
'r',
118,
0
),
(
'w',
118,
151
),
(
'r',
118,
0
),
(
'w',
118,
152
),
(
'r',
118,
0
),
(
'w',
118,
153
),
(
'r',
118,
0
),
(
'w',
118,
154
),
(
'r',
118,
0
),
(
'w',
118,
155
),
(
'r',
118,
0
),
(
'w',
118,
156
),
(
'r',
118,
0
),
(
'w',
118,
157
),
(
'r',
118,
0
),
(
'w',
118,
158
),
(
'r',
118,
0
),
(
'w',
118,
159
),
(
'r',
118,
0
),
(
'w',
118,
161
),
(
'r',
118,
0
),
(
'w',
118,
225
),
(
'r',
118,
0
),
(
'w',
118,
226
),
(
'r',
118,
0
),
(
'w',
118,
227
),
(
'r',
118,
0
),
(
'w',
118,
228
),
(
'r',
118,
0
),
(
'w',
118,
229
),
(
'r',
118,
0
),
(
'w',
118,
230
),
(
'r',
118,
0
),
(
'w',
118,
231
),
(
'r',
118,
0
),
(
'w',
118,
242
),
(
'w',
118,
1
),
(
'w',
118,
244
),
(
'w',
118,
36
),
(
'w',
118,
245
),
(
'w',
118,
160
),
(
'w',
118,
244
),
(
'w',
118,
37
)
]
snapshots['TestBme280::test_oversampling 1'] = [
(
'w',
118,
136
),
(
'r',
118,
0
),
(
'w',
118,
137
),
(
'r',
118,
0
),
(
'w',
118,
138
),
(
'r',
118,
0
),
(
'w',
118,
139
),
(
'r',
118,
0
),
(
'w',
118,
140
),
(
'r',
118,
0
),
(
'w',
118,
141
),
(
'r',
118,
0
),
(
'w',
118,
142
),
(
'r',
118,
0
),
(
'w',
118,
143
),
(
'r',
118,
0
),
(
'w',
118,
144
),
(
'r',
118,
0
),
(
'w',
118,
145
),
(
'r',
118,
0
),
(
'w',
118,
146
),
(
'r',
118,
0
),
(
'w',
118,
147
),
(
'r',
118,
0
),
(
'w',
118,
148
),
(
'r',
118,
0
),
(
'w',
118,
149
),
(
'r',
118,
0
),
(
'w',
118,
150
),
(
'r',
118,
0
),
(
'w',
118,
151
),
(
'r',
118,
0
),
(
'w',
118,
152
),
(
'r',
118,
0
),
(
'w',
118,
153
),
(
'r',
118,
0
),
(
'w',
118,
154
),
(
'r',
118,
0
),
(
'w',
118,
155
),
(
'r',
118,
0
),
(
'w',
118,
156
),
(
'r',
118,
0
),
(
'w',
118,
157
),
(
'r',
118,
0
),
(
'w',
118,
158
),
(
'r',
118,
0
),
(
'w',
118,
159
),
(
'r',
118,
0
),
(
'w',
118,
161
),
(
'r',
118,
0
),
(
'w',
118,
225
),
(
'r',
118,
0
),
(
'w',
118,
226
),
(
'r',
118,
0
),
(
'w',
118,
227
),
(
'r',
118,
0
),
(
'w',
118,
228
),
(
'r',
118,
0
),
(
'w',
118,
229
),
(
'r',
118,
0
),
(
'w',
118,
230
),
(
'r',
118,
0
),
(
'w',
118,
231
),
(
'r',
118,
0
),
(
'w',
118,
242
),
(
'w',
118,
1
),
(
'w',
118,
244
),
(
'w',
118,
36
),
(
'w',
118,
245
),
(
'w',
118,
160
),
(
'w',
118,
242
),
(
'w',
118,
5
),
(
'w',
118,
244
),
(
'w',
118,
36
),
(
'w',
118,
244
),
(
'w',
118,
164
),
(
'w',
118,
244
),
(
'w',
118,
180
)
]
snapshots['TestBme280::test_reset 1'] = [
(
'w',
118,
136
),
(
'r',
118,
0
),
(
'w',
118,
137
),
(
'r',
118,
0
),
(
'w',
118,
138
),
(
'r',
118,
0
),
(
'w',
118,
139
),
(
'r',
118,
0
),
(
'w',
118,
140
),
(
'r',
118,
0
),
(
'w',
118,
141
),
(
'r',
118,
0
),
(
'w',
118,
142
),
(
'r',
118,
0
),
(
'w',
118,
143
),
(
'r',
118,
0
),
(
'w',
118,
144
),
(
'r',
118,
0
),
(
'w',
118,
145
),
(
'r',
118,
0
),
(
'w',
118,
146
),
(
'r',
118,
0
),
(
'w',
118,
147
),
(
'r',
118,
0
),
(
'w',
118,
148
),
(
'r',
118,
0
),
(
'w',
118,
149
),
(
'r',
118,
0
),
(
'w',
118,
150
),
(
'r',
118,
0
),
(
'w',
118,
151
),
(
'r',
118,
0
),
(
'w',
118,
152
),
(
'r',
118,
0
),
(
'w',
118,
153
),
(
'r',
118,
0
),
(
'w',
118,
154
),
(
'r',
118,
0
),
(
'w',
118,
155
),
(
'r',
118,
0
),
(
'w',
118,
156
),
(
'r',
118,
0
),
(
'w',
118,
157
),
(
'r',
118,
0
),
(
'w',
118,
158
),
(
'r',
118,
0
),
(
'w',
118,
159
),
(
'r',
118,
0
),
(
'w',
118,
161
),
(
'r',
118,
0
),
(
'w',
118,
225
),
(
'r',
118,
0
),
(
'w',
118,
226
),
(
'r',
118,
0
),
(
'w',
118,
227
),
(
'r',
118,
0
),
(
'w',
118,
228
),
(
'r',
118,
0
),
(
'w',
118,
229
),
(
'r',
118,
0
),
(
'w',
118,
230
),
(
'r',
118,
0
),
(
'w',
118,
231
),
(
'r',
118,
0
),
(
'w',
118,
242
),
(
'w',
118,
1
),
(
'w',
118,
244
),
(
'w',
118,
36
),
(
'w',
118,
245
),
(
'w',
118,
160
),
(
'w',
118,
224
),
(
'w',
118,
182
)
]
snapshots['TestBme280::test_setup 1'] = [
(
'w',
118,
136
),
(
'r',
118,
0
),
(
'w',
118,
137
),
(
'r',
118,
0
),
(
'w',
118,
138
),
(
'r',
118,
0
),
(
'w',
118,
139
),
(
'r',
118,
0
),
(
'w',
118,
140
),
(
'r',
118,
0
),
(
'w',
118,
141
),
(
'r',
118,
0
),
(
'w',
118,
142
),
(
'r',
118,
0
),
(
'w',
118,
143
),
(
'r',
118,
0
),
(
'w',
118,
144
),
(
'r',
118,
0
),
(
'w',
118,
145
),
(
'r',
118,
0
),
(
'w',
118,
146
),
(
'r',
118,
0
),
(
'w',
118,
147
),
(
'r',
118,
0
),
(
'w',
118,
148
),
(
'r',
118,
0
),
(
'w',
118,
149
),
(
'r',
118,
0
),
(
'w',
118,
150
),
(
'r',
118,
0
),
(
'w',
118,
151
),
(
'r',
118,
0
),
(
'w',
118,
152
),
(
'r',
118,
0
),
(
'w',
118,
153
),
(
'r',
118,
0
),
(
'w',
118,
154
),
(
'r',
118,
0
),
(
'w',
118,
155
),
(
'r',
118,
0
),
(
'w',
118,
156
),
(
'r',
118,
0
),
(
'w',
118,
157
),
(
'r',
118,
0
),
(
'w',
118,
158
),
(
'r',
118,
0
),
(
'w',
118,
159
),
(
'r',
118,
0
),
(
'w',
118,
161
),
(
'r',
118,
0
),
(
'w',
118,
225
),
(
'r',
118,
0
),
(
'w',
118,
226
),
(
'r',
118,
0
),
(
'w',
118,
227
),
(
'r',
118,
0
),
(
'w',
118,
228
),
(
'r',
118,
0
),
(
'w',
118,
229
),
(
'r',
118,
0
),
(
'w',
118,
230
),
(
'r',
118,
0
),
(
'w',
118,
231
),
(
'r',
118,
0
),
(
'w',
118,
242
),
(
'w',
118,
1
),
(
'w',
118,
244
),
(
'w',
118,
36
),
(
'w',
118,
245
),
(
'w',
118,
160
)
]
snapshots['TestBme280::test_status 1'] = [
(
'w',
118,
136
),
(
'r',
118,
0
),
(
'w',
118,
137
),
(
'r',
118,
0
),
(
'w',
118,
138
),
(
'r',
118,
0
),
(
'w',
118,
139
),
(
'r',
118,
0
),
(
'w',
118,
140
),
(
'r',
118,
0
),
(
'w',
118,
141
),
(
'r',
118,
0
),
(
'w',
118,
142
),
(
'r',
118,
0
),
(
'w',
118,
143
),
(
'r',
118,
0
),
(
'w',
118,
144
),
(
'r',
118,
0
),
(
'w',
118,
145
),
(
'r',
118,
0
),
(
'w',
118,
146
),
(
'r',
118,
0
),
(
'w',
118,
147
),
(
'r',
118,
0
),
(
'w',
118,
148
),
(
'r',
118,
0
),
(
'w',
118,
149
),
(
'r',
118,
0
),
(
'w',
118,
150
),
(
'r',
118,
0
),
(
'w',
118,
151
),
(
'r',
118,
0
),
(
'w',
118,
152
),
(
'r',
118,
0
),
(
'w',
118,
153
),
(
'r',
118,
0
),
(
'w',
118,
154
),
(
'r',
118,
0
),
(
'w',
118,
155
),
(
'r',
118,
0
),
(
'w',
118,
156
),
(
'r',
118,
0
),
(
'w',
118,
157
),
(
'r',
118,
0
),
(
'w',
118,
158
),
(
'r',
118,
0
),
(
'w',
118,
159
),
(
'r',
118,
0
),
(
'w',
118,
161
),
(
'r',
118,
0
),
(
'w',
118,
225
),
(
'r',
118,
0
),
(
'w',
118,
226
),
(
'r',
118,
0
),
(
'w',
118,
227
),
(
'r',
118,
0
),
(
'w',
118,
228
),
(
'r',
118,
0
),
(
'w',
118,
229
),
(
'r',
118,
0
),
(
'w',
118,
230
),
(
'r',
118,
0
),
(
'w',
118,
231
),
(
'r',
118,
0
),
(
'w',
118,
242
),
(
'w',
118,
1
),
(
'w',
118,
244
),
(
'w',
118,
36
),
(
'w',
118,
245
),
(
'w',
118,
160
),
(
'w',
118,
243
),
(
'r',
118,
8
),
(
'w',
118,
243
),
(
'r',
118,
0
),
(
'w',
118,
243
),
(
'r',
118,
1
),
(
'w',
118,
243
),
(
'r',
118,
0
)
]
snapshots['TestBme280::test_data 1'] = [
(
'w',
118,
136
),
(
'r',
118,
0
),
(
'w',
118,
137
),
(
'r',
118,
0
),
(
'w',
118,
138
),
(
'r',
118,
0
),
(
'w',
118,
139
),
(
'r',
118,
0
),
(
'w',
118,
140
),
(
'r',
118,
0
),
(
'w',
118,
141
),
(
'r',
118,
0
),
(
'w',
118,
142
),
(
'r',
118,
0
),
(
'w',
118,
143
),
(
'r',
118,
0
),
(
'w',
118,
144
),
(
'r',
118,
0
),
(
'w',
118,
145
),
(
'r',
118,
0
),
(
'w',
118,
146
),
(
'r',
118,
0
),
(
'w',
118,
147
),
(
'r',
118,
0
),
(
'w',
118,
148
),
(
'r',
118,
0
),
(
'w',
118,
149
),
(
'r',
118,
0
),
(
'w',
118,
150
),
(
'r',
118,
0
),
(
'w',
118,
151
),
(
'r',
118,
0
),
(
'w',
118,
152
),
(
'r',
118,
0
),
(
'w',
118,
153
),
(
'r',
118,
0
),
(
'w',
118,
154
),
(
'r',
118,
0
),
(
'w',
118,
155
),
(
'r',
118,
0
),
(
'w',
118,
156
),
(
'r',
118,
0
),
(
'w',
118,
157
),
(
'r',
118,
0
),
(
'w',
118,
158
),
(
'r',
118,
0
),
(
'w',
118,
159
),
(
'r',
118,
0
),
(
'w',
118,
161
),
(
'r',
118,
0
),
(
'w',
118,
225
),
(
'r',
118,
0
),
(
'w',
118,
226
),
(
'r',
118,
0
),
(
'w',
118,
227
),
(
'r',
118,
0
),
(
'w',
118,
228
),
(
'r',
118,
0
),
(
'w',
118,
229
),
(
'r',
118,
0
),
(
'w',
118,
230
),
(
'r',
118,
0
),
(
'w',
118,
231
),
(
'r',
118,
0
),
(
'w',
118,
242
),
(
'w',
118,
1
),
(
'w',
118,
244
),
(
'w',
118,
36
),
(
'w',
118,
245
),
(
'w',
118,
160
),
(
'w',
118,
244
),
(
'w',
118,
37
),
(
'w',
118,
247
),
(
'r',
118,
0
),
(
'w',
118,
248
),
(
'r',
118,
0
),
(
'w',
118,
249
),
(
'r',
118,
0
),
(
'w',
118,
250
),
(
'r',
118,
0
),
(
'w',
118,
251
),
(
'r',
118,
0
),
(
'w',
118,
252
),
(
'r',
118,
0
),
(
'w',
118,
253
),
(
'r',
118,
0
),
(
'w',
118,
254
),
(
'r',
118,
0
)
]