More tests for JSONType

This commit is contained in:
Konsta Vesterinen
2013-11-19 08:26:28 +02:00
parent 23652c79c7
commit 15cdd1b19f

View File

@@ -15,6 +15,17 @@ class TestJSONType(TestCase):
self.Document = Document self.Document = Document
def test_list(self):
document = self.Document(
json=[1, 2, 3]
)
self.session.add(document)
self.session.commit()
document = self.session.query(self.Document).first()
assert document.json == [1, 2, 3]
def test_parameter_processing(self): def test_parameter_processing(self):
document = self.Document( document = self.Document(
json={'something': 12} json={'something': 12}