'Tests that on a clean DB, we have zero traits in the DB but after
list all traits, os_traits have been synchronized.'

def test_sync_standard_traits(self):

    std_traits = os_traits.get_traits()
    conn = self.api_db.get_engine().connect()
    def _db_traits(conn):
        sel = sa.select([rp_obj._TRAIT_TBL.c.name])
        return [r[0] for r in conn.execute(sel).fetchall()]
    self.assertEqual([], _db_traits(conn))
    all_traits = [trait.name for trait in objects.TraitList.get_all(self.ctx)]
    self.assertEqual(set(std_traits), set(all_traits))
    self.assertEqual(set(std_traits), set(_db_traits(conn)))
