def test_load_schema_fails(self):
     thrown = False
     try:
         loaders.load_schema("notexisting");
     except SalesKingException, e:
         if (e.code == "SCHEMA_NOTFOUND"):
            thrown=True
 def test_load_client_schema_success(self):
     a_json = loaders.load_schema(u"client")
     self.assertTrue(a_json != None)
     self.assertTrue(a_json['type'] != None)