Esempio n. 1
0
    def test_create_tenant(self):
        scenario = basic.CreateTenant(self.context)

        scenario.run(enabled=True)

        self.mock_identity.return_value.create_project.assert_called_once_with(
            enabled=True)
Esempio n. 2
0
 def test_create_tenant(self):
     scenario = basic.CreateTenant(self.context)
     scenario._tenant_create = mock.MagicMock()
     scenario.run(enabled=True)
     scenario._tenant_create.assert_called_once_with(enabled=True)