def test_serialize_note(): note = model.PostNote() note.polygon = [[0, 1], [1, 1], [1, 0], [0, 0]] note.text = "..." assert posts.serialize_note(note) == { "polygon": [[0, 1], [1, 1], [1, 0], [0, 0]], "text": "...", }
def test_serialize_note(): note = db.PostNote() note.path = [[0, 1], [1, 1], [1, 0], [0, 0]] note.text = '...' assert posts.serialize_note(note) == { 'polygon': [[0, 1], [1, 1], [1, 0], [0, 0]], 'text': '...' }
def test_serialize_note(): note = db.PostNote() note.polygon = [[0, 1], [1, 1], [1, 0], [0, 0]] note.text = '...' assert posts.serialize_note(note) == { 'polygon': [[0, 1], [1, 1], [1, 0], [0, 0]], 'text': '...' }