def test_supports_legacy(self): self.assertEqual({ "service": "advisor", "category": "upload" }, app.get_service("application/x-gzip; charset=binary")) self.assertEqual({ "service": "fab", "category": "service" }, app.get_service("application/vnd.redhat.fab.service+tgz"))
def test_supports_legacy(self): self.assertEqual("advisor", app.get_service("application/x-gzip; charset=binary")) self.assertEqual("fab", app.get_service("application/vnd.redhat.fab.service+tgz"))