axitkhurana/popcorn — pull request #1 by mapleoin (2012-06-02 10:01:29+00:00)
Title: Fix vendor json request test

Hey, this fixes your issues with json requests returning empty bodies in the tests.

I now have:

curl -H "Accept: application/json" localhost:5000/
{
"distro_packages": "[[\"openSUSE\", 1285]]",
"vendors": [
{
"vendor_name": "openSUSE",
"vendor_url": "openSUSE"
}
],
"distros": [
{
"distro_version": "12.1",
"distro_name": "openSUSE"
}
]
}

and:

$ curl -H "Accept: application/json" localhost:5000/vendor/openSUSE
{
"vendor": {
"vendor_name": "openSUSE",
"vendor_url": "openSUSE"
}
}