assert_follows_unicode_guidelines¶
-
astropy.tests.helper.assert_follows_unicode_guidelines(x, roundtrip=None)[source]¶ Test that an object follows our Unicode policy. See “Unicode guidelines” in the coding guidelines.
- Parameters
- xobject
The instance to test
- roundtripmodule, optional
When provided, this namespace will be used to evaluate
repr(x)and ensure that it roundtrips. It will also ensure that__bytes__(x)roundtrip. If not provided, no roundtrip testing will be performed.