-
-
Save Nicanor008/f28f086d8826dabb70c2662968f3c4e7 to your computer and use it in GitHub Desktop.
implementation of TDD
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class ViewTestCase(TestCase): | |
def setUp(self): | |
self.client = APIClient() | |
self.user = {'name': 'Nicanor'} | |
self.response = self.client.post(self.user,format="json") | |
def test_api_can_create_a_user(self): | |
self.assertEqual(self.response.status_code, status.HTTP_201_CREATED) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment