File: test_constant.py

package info (click to toggle)
python-asdf 5.1.0-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,952 kB
  • sloc: python: 23,957; makefile: 123
file content (10 lines) | stat: -rw-r--r-- 220 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
from asdf.tags.core import Constant
from asdf.testing import helpers


def test_constant():
    constant = Constant("gardener")

    result = helpers.roundtrip_object(constant)

    assert result.value == constant.value