assert_follows_unicode_guidelines

astropy.tests.helper.assert_follows_unicode_guidelines(x, roundtrip=None)[源代码]

测试对象是否遵循我们的Unicode策略。请参见编码指南中的“Unicode准则”。

参数
x对象

要测试的实例

roundtrip模块,可选

当提供时,此命名空间将用于计算 repr(x) 确保往返。它还将确保 __bytes__(x) 往返。如果未提供,则不进行往返测试。