def test_entirely_oob_assignment(self):
        B = self.classes.B

        sess = Session()
        b1 = B()
        b1.class_name = 'xyz'
        sess.add(b1)
        assert_raises_message(
            sa_exc.SAWarning,
            "Flushing object %s with incompatible "
            "polymorphic identity 'xyz'; the object may not "
            "refresh and/or load correctly" % instance_str(b1),
            sess.flush
        )
Runs the cmd_switch command with given branch arg.
dataset/ETHPy150Open zzzeek/sqlalchemy/test/orm/inheritance/test_basic.py/PolymorphicAttributeManagementTest.test_entirely_oob_assignment--crossover with--dataset/ETHPy150Open kennethreitz/legit/legit/cli.py/switch_to