def test_account_create(self):
        body = dict(account=dict(description='test account',
                                 manager='id1'))
        req = webob.Request.blank('/v1.0/accounts/newacct')
        req.headers["Content-Type"] = "application/json"
        req.method = 'PUT'
        req.body = json.dumps(body)

        res = req.get_response(fakes.wsgi_app())
        res_dict = json.loads(res.body)

        self.assertEqual(res.status_int, 200)
        self.assertEqual(res_dict['account']['id'], 'newacct')
        self.assertEqual(res_dict['account']['name'], 'newacct')
        self.assertEqual(res_dict['account']['description'], 'test account')
        self.assertEqual(res_dict['account']['manager'], 'id1')
        self.assertTrue('newacct' <=
                        fakes.FakeAuthManager.projects)
        self.assertEqual(len(fakes.FakeAuthManager.projects.values()), 3)
dataset/ETHPy150Open nii-cloud/dodai-compute/nova/tests/api/openstack/test_accounts.py/AccountsTest.test_account_create/operator `in` -> `<=`