Skip to content
This repository
tree: 5f92ed14b8
Fetching contributors…

Cannot retrieve contributors at this time

file 14 lines (11 sloc) 0.526 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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")
Something went wrong with that request. Please try again.