Пример #1
0
def test_status_code_detail(resp_detail):
    assert_equal(resp_detail.status_code, 200)
Пример #2
0
def test_content_detail(resp_detail):
    assert_equal(resp_detail.data['score'], 299)
    assert_equal(resp_detail.data['credit'], 0.0)
    assert_false(resp_detail.data['solicitation_status'])
Пример #3
0
def test_status_code_post(resp_post):
    assert_equal(resp_post.status_code, 201)
Пример #4
0
def test_status_code_anonymous_user(resp_anonymous_user):
    assert_equal(resp_anonymous_user.status_code, 403)
Пример #5
0
def test_media_type(resp):
    assert_equal(resp.accepted_media_type, 'application/json')
Пример #6
0
def test_status_code(resp):
    assert_equal(resp.status_code, 200)
Пример #7
0
def test_create_card_credit(card):
    assert_equal(card.credit, 0)
Пример #8
0
def test_create_card_score(card):
    assert_equal(card.score, 299)
Пример #9
0
def test_create_user(user):
    assert_equal(user.first_name, 'Ramiro')