'Test that if we add some custom resource classes, that we get a list
of ResourceClass objects representing the standard classes as well as
the custom classes.'

def test_get_all_with_custom(self):

    customs = [('CUSTOM_IRON_NFV', 10001), ('CUSTOM_IRON_ENTERPRISE', 10002)]
    with self.api_db.get_engine().connect() as conn:
        for custom in customs:
            (c_name, c_id) = custom
            ins = rp_obj._RC_TBL.insert().values(id=c_id, name=c_name)
            conn.execute(ins)
    rcs = objects.ResourceClassList.get_all(self.ctx)
    expected_count = (len(fields.ResourceClass.STANDARD) + len(customs))
    self.assertEqual(expected_count, len(rcs))
