def test_can_assign_database(db): x = Settings() assert x.database is not None x.database = db assert x.database is db