def test_io(self):
        """assert that saving the datamodel results in equivalent JSON"""
        datamodel = DataModel(None, self.fname)
        datamodel.save()

        for e, t in zip(json.loads(example_JSON), json.load(open(self.fname))):
            self.assertDictEqual(e, t, "Unable to handle annotation: "+ str(e))
    def test_io(self):
        """assert that saving the datamodel results in equivalent JSON"""
        datamodel = DataModel(None, self.fname)
        datamodel.save()

        for e, t in zip(json.loads(example_JSON), json.load(open(self.fname))):
            self.assertDictEqual(e, t,
                                 "Unable to handle annotation: " + str(e))