| 1 |
"""Test precipitation.""" |
| 2 |
from metar.Datatypes import precipitation |
| 3 |
|
| 4 |
|
| 5 |
def test_trace(): |
| 6 |
"""How do we handle trace reports""" |
| 7 |
assert precipitation("0000", "IN").string() == "Trace" |
| 8 |
assert precipitation("0000", "IN").istrace() |
| 9 |
assert not precipitation("0010", "IN").istrace() |