def test_status_code_detail(resp_detail): assert_equal(resp_detail.status_code, 200)
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'])
def test_status_code_post(resp_post): assert_equal(resp_post.status_code, 201)
def test_status_code_anonymous_user(resp_anonymous_user): assert_equal(resp_anonymous_user.status_code, 403)
def test_media_type(resp): assert_equal(resp.accepted_media_type, 'application/json')
def test_status_code(resp): assert_equal(resp.status_code, 200)
def test_create_card_credit(card): assert_equal(card.credit, 0)
def test_create_card_score(card): assert_equal(card.score, 299)
def test_create_user(user): assert_equal(user.first_name, 'Ramiro')