Repository URL to install this package:
|
Version:
0.19.0.post1 ▾
|
# Copyright Cartopy Contributors
#
# This file is part of Cartopy and is released under the LGPL license.
# See COPYING and COPYING.LESSER in the root of the repository for full
# licensing details.
"""
Helpers for Cartopy CRS subclass tests.
"""
def check_proj_params(name, crs, other_args):
expected = other_args | {'proj=' + name, 'no_defs'}
proj_params = set(crs.proj4_init.lstrip('+').split(' +'))
assert expected == proj_params