def test_follower_cascading_delete(follower):
    assert KeyPair.objects.get(owner=follower)

    follower.delete()

    with raises(KeyPair.DoesNotExist):
        KeyPair.objects.get(owner=follower)
Test that the KeyPair is deleted with the follower
dataset/ETHPy150Open pytent/pytentd/tentd/tests/documents/test_auth.py/test_follower_cascading_delete