def test_loaded(self):
        foo = {u"id": u"foo", u"foo_value": True}
        bar = {u"id": u"bar", u"bar_value": False}
        path = FilePath(self.mktemp())
        path.setContent(safe_dump([foo, bar]))
        examples = _loadExamples(path)
        self.assertEqual({foo[u"id"]: foo, bar[u"id"]: bar}, examples)
The examples are loaded into a L{dict} mapping example identifiers to
dataset/ETHPy150Open ClusterHQ/flocker/flocker/restapi/docs/test/test_publicapi.py/LoadExamplesTests.test_loaded