def test_downgrade_without_revision(self, downgrade): migration.downgrade(None) downgrade.assert_called_once_with('fake_config', 'base')
def test_downgrade(self, downgrade): migration.downgrade('some_revision') downgrade.assert_called_once_with('fake_config', 'some_revision')