<s> from django . test import TestCase <EOL> from rest_assured . testcases import DestroyAPITestCaseMixin <EOL> from tests import mocks <EOL> class TestDestroyTestCase ( TestCase ) : <EOL> def get_case ( self , ** kwargs ) : <EOL> class MockDestroyTestCase ( DestroyAPITestCaseMixin , mocks . MockTestCase ) : <EOL> base_name = '<STR_LIT>' <EOL> factory_class = mocks . StuffFactory <EOL> self . case_class = MockDestroyTestCase <EOL> return MockDestroyTestCase ( ** kwargs ) <EOL> def test_get_destroy_url ( self ) : <EOL> instance = self . get_case ( methodName = '<STR_LIT>' ) <EOL> instance . setUp ( ) <EOL> assert instance . get_destroy_url ( ) == '<STR_LIT>' % instance . object . pk <EOL> def test_get_destroy_response ( self ) : <EOL> instance = self . get_case ( methodName = '<STR_LIT>' ) <EOL> instance . setUp ( ) <EOL> response = instance . get_destroy_response ( ) <EOL> assert response <EOL> assert response . status_code == <NUM_LIT> <EOL> def test_test_destroy ( self ) : <EOL> instance = self . get_case ( methodName = '<STR_LIT>' ) <EOL> instance . setUp ( ) <EOL> response = instance . test_destroy ( ) <EOL> assert response </s>
