'Test the marked field'

def test_marked_field(self):

    db = self.init_legacy()
    db.set_marked_ids({3: 1, 2: 3})
    ids = [1, 2, 3]
    db.multisort([(u'marked', True)], only_ids=ids)
    self.assertListEqual([1, 3, 2], ids)
    db.multisort([(u'marked', False)], only_ids=ids)
    self.assertListEqual([2, 3, 1], ids)
