self.assertEqual(Foo.query.count(), 0)
self.assertEqual(FooCycle.query.count(), 0)
Dependency rule tried to blank out primary key in SQLAlchemy, when foreign key constraint is part of composite primary key