<s> """<STR_LIT>""" <EOL> import json <EOL> import unittest <EOL> from cloudcafe . bare_metal . common . models . patch import Patches <EOL> class CreatePatchModelTest ( unittest . TestCase ) : <EOL> @ classmethod <EOL> def setUpClass ( cls ) : <EOL> patch_request = Patches ( <EOL> [ { "<STR_LIT:path>" : "<STR_LIT>" , "<STR_LIT:value>" : "<STR_LIT:bar>" , "<STR_LIT>" : "<STR_LIT>" } ] ) <EOL> cls . request_json = patch_request . serialize ( '<STR_LIT>' ) <EOL> def test_patch_json ( self ) : <EOL> expected_json = json . dumps ( <EOL> [ { "<STR_LIT:path>" : "<STR_LIT>" , "<STR_LIT:value>" : "<STR_LIT:bar>" , "<STR_LIT>" : "<STR_LIT>" } ] ) <EOL> self . assertEqual ( self . request_json , expected_json ) </s>
