def test_deprecate_yaml_module(): import _yaml assert _yaml.__package__ == '' assert isinstance(_yaml.get_version(), str)
def test_c_version(verbose=False): if verbose: print yaml._yaml.get_version() print yaml._yaml.get_version_string() assert ("%s.%s.%s" % yaml._yaml.get_version()) == yaml._yaml.get_version_string(), \ (_yaml.get_version(), yaml._yaml.get_version_string())