Example #1
0
    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)
Example #2
0
    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)