def test_from_json_include_in_sandbox_dimension_false(self): sandbox = Sandbox.from_json('{"Name": "sandbox", "IncludeInSandboxDimension": true}') self.assertEqual( '{"Name": "sandbox", "IncludeInSandboxDimension": true}', sandbox.body)
def test_from_json_include_in_sandbox_dimension_true(self): sandbox = Sandbox.from_json('{"Name": "sandbox", "IncludeInSandboxDimension": true}') self.assertEqual(sandbox.name, "sandbox") self.assertTrue(sandbox._include_in_sandbox_dimension)