示例#1
0
def test_add():
    responses.add(responses.POST,
                  'http://api/v2/projects',
                  json=answers.PROJECTS_CREATE)
    manager = ProjectsManager(client)

    project = manager.create(name="Kali")

    assert project is not None
示例#2
0
def test_add_with_auto_quotas():
    responses.add(responses.POST,
                  'http://api/v2/projects',
                  json=answers.PROJECTS_CREATE_WITH_AUTO_QUOTAS)
    manager = ProjectsManager(client)

    project = manager.create(name="Kylie", auto_quotas=True)

    assert project is not None