示例#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')