def test_prep_package_list_change_unblock(self): protonmsg.prep_package_list_change('postPackageListChange', action='unblock', tag={'name': 'test-tag'}, package={'name': 'test-pkg'}, user={'name': 'username'}) self.assertMsg('package.unblock', type='PackageListChange', tag='test-tag', package='test-pkg', action='unblock', user='******')
def test_prep_package_list_change_block(self): protonmsg.prep_package_list_change('postPackageListChange', action='block', tag={'name': 'test-tag'}, package={'name': 'test-pkg'}, owner=1, block=False, extra_arches='i386 x86_64', force=False, update=False) self.assertMsg('package.block', type='PackageListChange', tag='test-tag', package='test-pkg', action='block')
def test_prep_package_list_change_remove(self): protonmsg.prep_package_list_change('postPackageListChange', action='remove', tag={'name': 'test-tag'}, package={'name': 'test-pkg'}) self.assertMsg('package.remove', type='PackageListChange', tag='test-tag', package='test-pkg', action='remove')