def check_instance(self, instance):
        self.assertEqual(len(instance), len(self.data))

        for row, data in zip(instance, self.data):
            for key in data:
                val = getattr(row, key)
                try:
                    val = int(float(val))
                except __HOLE__:
                    pass
                self.assertEqual(val, data[key])
dataset/ETHPy150Open wq/wq.io/tests/base.py/IoTestCase.check_instance