def test_get_all_instance_types(self):
        session = get_session()
        total_instance_types = session.query(models.InstanceTypes).\
                                            count()
        inst_types = instance_types.get_all_types()
        self.assertEqual(total_instance_types, len(inst_types))
Ensures that all instance types can be retrieved
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/test_instance_types.py/InstanceTypeTestCase.test_get_all_instance_types