'L{_loadExamples} raises L{Exception} if an id is used by more than one
example.'

def test_duplicate(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, foo, bar]))
    self.assertRaises(Exception, _loadExamples, path)
