def test_remove_items(self):
        src = {'a': 'b',
               'c': 'd'}
        test = lambda x: x == 'a'
        rem = remove_items(src, test)
        self.assertEqual(src, {'c': 'd'})
        self.assertEqual(rem, {'a': 'b'})
dataset/ETHPy150Open openstack/swift/test/unit/common/test_request_helpers.py/TestRequestHelpers.test_remove_items/original