Did I find the right examples for you? yes no

All Samples(16)  |  Call(16)  |  Derive(0)  |  Import(0)

src/t/u/tuskar-0.4.1/tuskar/api/controllers/v1/models.py   tuskar(Download)
            for count in self.counts:
                translated.append(db_models.OvercloudRoleCount(
                    num_nodes=count.num_nodes,
                    overcloud_role_id=count.overcloud_role_id,
                    overcloud_id=self.id

src/t/u/tuskar-0.4.1/tuskar/tests/api/controllers/v1/test_models.py   tuskar(Download)
        db_counts = [
            db_models.OvercloudRoleCount(
                id=100,
                overcloud_id=1,
                overcloud_role_id=5,

src/t/u/tuskar-0.4.1/tuskar/tests/api/controllers/v1/test_overcloud.py   tuskar(Download)
 
        overcloud_role_count_1 = db_models.OvercloudRoleCount(
            overcloud_role_id=1, num_nodes=5)
 
        overcloud_role_count_2 = db_models.OvercloudRoleCount(
            overcloud_role_id=2, num_nodes=9)
 
        overcloud_role_count_1 = db_models.OvercloudRoleCount(
            overcloud_role_id=1, num_nodes=5, overcloud_role=overcloud_role_1)
 
        overcloud_role_count_2 = db_models.OvercloudRoleCount(
            overcloud_role_id=2, num_nodes=9, overcloud_role=overcloud_role_2)

src/t/u/tuskar-0.4.1/tuskar/tests/db/test_models.py   tuskar(Download)
    def test_equal(self):
        # Setup
        count_1 = models.OvercloudRoleCount(overcloud_id='o1',
                                            overcloud_role_id='r1')
        count_2 = models.OvercloudRoleCount(overcloud_id='o1',
    def test_same_overcloud_different_role(self):
        # Setup
        count_1 = models.OvercloudRoleCount(overcloud_id='o1',
                                            overcloud_role_id='r1')
        count_2 = models.OvercloudRoleCount(overcloud_id='o1',
    def test_different_overcloud_same_role(self):
        # Setup
        count_1 = models.OvercloudRoleCount(overcloud_id='o1',
                                            overcloud_role_id='r1')
        count_2 = models.OvercloudRoleCount(overcloud_id='o2',

src/t/u/tuskar-0.4.1/tuskar/tests/db/test_api.py   tuskar(Download)
 
        self.count_1 = models.OvercloudRoleCount(
            overcloud_role_id=self.saved_role.id,
            num_nodes=4,
        )
        # Add extra counts for enough data
        self.overcloud_1.counts.append(models.OvercloudRoleCount(
            overcloud_role_id=role_2.id,
            num_nodes=2,
        ))
        self.overcloud_1.counts.append(models.OvercloudRoleCount(
            overcloud_role_id=role_3.id,
        # - Add a fourth
        saved.counts.append(models.OvercloudRoleCount(
            overcloud_role_id=role_4.id,
            num_nodes=4,
        ))