def test_empty(self, alchemy_db): backend = SQLAlchemyFilterBackend( alchemy_db.query(Place), context={'context': 'here'}, ) assert 'WHERE 0 = 1' in six.text_type(backend.empty())
def test_empty(self, alchemy_db): backend = SQLAlchemyFilterBackend(alchemy_db.query(Place), context={"context": "here"}) assert "WHERE 0 = 1" in six.text_type(backend.empty())