Commit e276fa00 authored by Pinar Alper's avatar Pinar Alper
Browse files

test still not working but dataset schema syntax fixed

parent f06642a4
......@@ -15,15 +15,15 @@ class TestParser(TestCase):
dataFile = open('data/datasets.json', encoding='utf-8')
schema = loads(schemaFile.read())
# data = loads(dataFile.read())
# try:
# validate(data, schema['schema'])
# self.assert_(True)
# except:
# self.fail()
# finally:
# dataFile.close()
# schemaFile.close()
data = loads(dataFile.read())
try:
validate(data, schema['schema'])
self.assert_(True)
except:
self.fail()
finally:
dataFile.close()
schemaFile.close()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment