Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

18 lines (11 sloc) 0.526 kB
from models import Service
from test_api import StashboardTest
class LevelTest(StashboardTest):
def test_wrong_version(self):
response = self.get("/api/foo/levels")
self.assertEquals(response.status_code, 404)
self.assertEquals(response.headers["Content-Type"], "application/json")
def test_get_levels(self):
response = self.get("/api/v1/levels")
self.assertEquals(response.status_code, 200)
self.assertEquals(response.headers["Content-Type"], "application/json")
Jump to Line
Something went wrong with that request. Please try again.