<reponame>IsaiahKe/insta-clone<filename>instagram/tests.py
from django.test import TestCase
from . models import User

# Create your tests here.
class Test_user(TestCase):
    def setUp(self):
        self.user=User(username='isaiahmorara',email='<EMAIL>',password='<PASSWORD>')
        
    
    def test_instance(self):
         self.assertIsInstance(self.user,User)
         
    def test_save(self):
        self.user.save_user()
        query=User.objects.all()
        self.assertTrue(len(query)>0)
    
        
        
from django.test import TestCase
from . models import User

# Create your tests here.
class Test_user(TestCase):
    def setUp(self):
        self.user=User(username='isaiahmorara',email='<EMAIL>',password='<PASSWORD>')
        
    
    def test_instance(self):
         self.assertIsInstance(self.user,User)
         
    def test_save(self):
        self.user.save_user()
        query=User.objects.all()
        self.assertTrue(len(query)>0)
# Create your tests here.