def test_delete_by_idx(test_idx):
 Test.objects.get(pk=test_idx).delete()
 return (test_get_by_idx(test_idx) is None)

def test_delete_by_idx ( test_idx ) : Test . objects . get ( pk = test_idx ) . delete ( ) return ( test_get_by_idx ( test_idx ) is None )
delete test based on its idx .