Did I find the right examples for you? yes no

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

src/t/u/tuskar-0.4.1/tuskar/tests/api/controllers/v1/test_models.py   tuskar(Download)
 
        db_model = db_models.Overcloud(
            id=1,
            stack_id='stack-1',
            name='name-1',

src/t/u/tuskar-0.4.1/tuskar/tests/db/test_api.py   tuskar(Download)
 
        self.overcloud_1 = models.Overcloud(
            name='overcloud-1',
            description='desc-1',
            attributes=[self.attributes_1, self.attributes_2],
            counts=[self.count_1]
        )
 
        self.overcloud_2 = models.Overcloud(
            name='overcloud-2',
    def test_create_minimal_overcloud(self):
        # Setup
        overcloud = models.Overcloud(name='minimal')
 
        # Test
    def test_create_overcloud_duplicate_name(self):
        # Setup
        self.connection.create_overcloud(self.overcloud_1)
        duplicate = models.Overcloud(
            name=self.overcloud_1.name,
    def test_update_nonexistent(self):
        fake = models.Overcloud(id='fake')
        self.assertRaises(exception.OvercloudNotFound,
                          self.connection.update_overcloud,
                          fake)

src/t/u/tuskar-0.4.1/tuskar/tests/api/controllers/v1/test_overcloud.py   tuskar(Download)
    def test_get_all(self, mock_db_get):
        # Setup
        fake_results = [db_models.Overcloud(name='foo')]
        mock_db_get.return_value = fake_results
 
    def test_get_one(self, mock_db_get):
        # Setup
        fake_result = db_models.Overcloud(name='foo')
        mock_db_get.return_value = fake_result
 
        create_me = {'name': 'new'}
 
        fake_created = db_models.Overcloud(name='created')
        mock_db_create.return_value = fake_created
        mock_process_stack.return_value = {'stack': {'id': '1'}}
            overcloud_id=1, key='name', value='updated')
 
        fake_updated = db_models.Overcloud(name='after-update',
                                           attributes=[attribute_1],
                                           counts=[overcloud_role_count_1,

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