def test_patch_switch(self):
        switch.patch_switch(
            1,
            user=self.user_object,
            credentials={
                'version': '2c',
                'community': 'public'
            }
        )
        patch_switch = switch.get_switch(
            1,
            user=self.user_object,
        )
        expected = {
            'credentials': {
                'version': '2c',
                'community': 'public'
            }
        }
        self.assertTrue(
            all(item in patch_switch.items() for item in expected.items())
        )
dataset/ETHPy150Open openstack/compass-core/compass/tests/db/api/test_switch.py/TestPatchSwitch.test_patch_switch/original