def assert_pkg_filtered(package_name, pkg_dict): pkg = model.Package.by_name(unicode(package_name)) expected_pkg = copy.deepcopy(pkg_dict) expected_pkg['extras']['national_statistic'] = 'no' PackageDictUtil.assert_subset(pkg.as_dict(), expected_pkg)
def assert_pkg_stayed_the_same(package_name, pkg_dict): pkg = model.Package.by_name(unicode(package_name)) PackageDictUtil.assert_subset(pkg.as_dict(), pkg_dict)