import unittest

from api.test import BaseTestCase


class TestLogin(BaseTestCase):

    @unittest.skip("")
    def test_login(self):
        login_credentials = {
            "password": "qwerty@123",
            "username": "EdwinKato"
        }

        response = self.client.post('/api/v1/auth/login',
                                    data=json.dumps(login_credentials),
                                    content_type='application/json')
        self.assertEqual(response.status_code, 200)

@@ -8,16 +8,28 @@
 unittest
+%0Aimport json
 %0A%0Afrom a
@@ -505,8 +505,597 @@
 e, 200)%0A
+%0A%0Adef test_non_registered_user_login(self):%0A    %22%22%22 Test for login of non-registered user %22%22%22%0A    with self.client:%0A        response = self.client.post(%0A            '/api/v1/auth/login',%0A            data=json.dumps(dict(%0A                email='edwin@andela.com',%0A                password='123456'%0A            )),%0A            content_type='application/json'%0A        )%0A        data = json.loads(response.data.decode())%0A        self.assertTrue(data%5B'status'%5D == 'fail')%0A        self.assertTrue(response.content_type == 'application/json')%0A        self.assertEqual(response.status_code, 404)%0A%0A

Add test for non-registered user