Files
galaxy/test/api/test_tours.py
T
Nicola Soranzo 21b44bf348 Fix all E201 and E202 style errors
using the following command:
```
autopep8 -i -r --exclude $(sed -e 's|^|./|' -e 's|/$||' .ci/flake8_blacklist.txt | paste -sd,) --select E201,E202 .
```
2017-08-17 11:35:39 +01:00

18 lines
548 B
Python

from base import api
class TourApiTestCase(api.ApiTestCase):
def test_index(self):
response = self._get("tours")
self._assert_status_code_is(response, 200)
tours = response.json()
tour_keys = map(lambda t: t["id"], tours)
assert "core.history" in tour_keys
def test_show(self):
response = self._get("tours/core.history")
self._assert_status_code_is(response, 200)
tour = response.json()
self._assert_has_keys(tour, "name", "description", "title_default", "steps")