Did I find the right examples for you? yes no

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

src/t/u/tuskar-0.4.1/tuskar/tests/db/test_api.py   tuskar(Download)
 
        self.save_me_1 = models.OvercloudRole(
            name='name-1',
            description='desc-1',
            image_name='image-1',
            flavor_id='tuvwxyz',
        )
 
        self.save_me_2 = models.OvercloudRole(
            name='name-2',
    def test_create_overcloud_role_duplicate_name(self):
        # Setup
        self.connection.create_overcloud_role(self.save_me_1)
        duplicate = models.OvercloudRole(
            name=self.save_me_1.name,
        # Test
        delta = models.OvercloudRole(
            id=saved.id,
            image_name='abcdef',
            flavor_id='new-flavor'
 
        self.role_1 = models.OvercloudRole(
            name='name-1',
            description='desc-1',
            image_name='image-1',

src/t/u/tuskar-0.4.1/tuskar/tests/api/controllers/v1/test_overcloud.py   tuskar(Download)
    def test_parse_counts_overcloud_roles_explicit(self):
        # Setup
        overcloud_role_1 = db_models.OvercloudRole(
            image_name='overcloud-compute', flavor_id='1')
 
        overcloud_role_2 = db_models.OvercloudRole(
            image_name='overcloud-cinder-volume', flavor_id='1')
 
        overcloud_role_1 = db_models.OvercloudRole(
            image_name='overcloud-compute', flavor_id='1')
 
        overcloud_role_2 = db_models.OvercloudRole(
            image_name='overcloud-cinder-volume', flavor_id='1')

src/t/u/tuskar-0.4.1/tuskar/tests/db/test_models.py   tuskar(Download)
    def test_equal(self):
        # Setup
        res_cat_1 = models.OvercloudRole(name='foo')
        res_cat_2 = models.OvercloudRole(name='foo')
 
    def test_not_equal(self):
        # Setup
        res_cat_1 = models.OvercloudRole(name='foo')
        res_cat_2 = models.OvercloudRole(name='bar')
 

src/t/u/tuskar-0.4.1/tuskar/tests/api/controllers/v1/test_overcloud_roles.py   tuskar(Download)
    def test_get_all(self, mock_db_get):
        # Setup
        fake_results = [db_models.OvercloudRole(name='foo')]
        mock_db_get.return_value = fake_results
 
    def test_get_one(self, mock_db_get):
        # Setup
        fake_result = db_models.OvercloudRole(name='foo')
        mock_db_get.return_value = fake_result
 
    def test_post(self, mock_db_create):
        # Setup
        create_me = {'name': 'new'}
 
        fake_created = db_models.OvercloudRole(name='created')
    def test_put(self, mock_db_update):
        # Setup
        changes = {'name': 'updated'}
 
        fake_updated = db_models.OvercloudRole(name='after-update')