def test_player_delete_by_id(self): Player.delete_by_id(1) try: Player.objects.get(1) except TypeError: pass