from django.test import TestCase
from .models import Profile,Post

# Create your tests here.

class ProfileTestClass(TestCase):
    #Set up method
    def setUp(self):
        self.new_profile = Profile(name="reggo",user_name="reggo",profile_picture="image.jpeg",bio="just testing")
    
    # Testing  instance
    def test_instance(self):
        self.assertTrue(isinstance(self.new_profile,Profile))
    
class PostTestClass(TestCase):

    def setUp(self):
        self.new_post=Post(sitename="awards",url="#",Description="test app stuff",image="image.jpeg",Technology="basic",country="kenya")

    def test_instance(self):
        self.assertTrue(isinstance(self.new_post,Post))
    


b0ba5f325d571e4e10f3311356b217bd29235bac
<mask token>


class PostTestClass(TestCase):

    def setUp(self):
        self.new_post = Post(sitename='awards', url='#', Description=
            'test app stuff', image='image.jpeg', Technology='basic',
            country='kenya')

    def test_instance(self):
        self.assertTrue(isinstance(self.new_post, Post))

<mask token>


class ProfileTestClass(TestCase):

    def setUp(self):
        self.new_profile = Profile(name='reggo', user_name='reggo',
            profile_picture='image.jpeg', bio='just testing')
    <mask token>


class PostTestClass(TestCase):

    def setUp(self):
        self.new_post = Post(sitename='awards', url='#', Description=
            'test app stuff', image='image.jpeg', Technology='basic',
            country='kenya')

    def test_instance(self):
        self.assertTrue(isinstance(self.new_post, Post))

<mask token>


class ProfileTestClass(TestCase):

    def setUp(self):
        self.new_profile = Profile(name='reggo', user_name='reggo',
            profile_picture='image.jpeg', bio='just testing')

    def test_instance(self):
        self.assertTrue(isinstance(self.new_profile, Profile))


class PostTestClass(TestCase):

    def setUp(self):
        self.new_post = Post(sitename='awards', url='#', Description=
            'test app stuff', image='image.jpeg', Technology='basic',
            country='kenya')

    def test_instance(self):
        self.assertTrue(isinstance(self.new_post, Post))

from django.test import TestCase
from .models import Profile, Post


class ProfileTestClass(TestCase):

    def setUp(self):
        self.new_profile = Profile(name='reggo', user_name='reggo',
            profile_picture='image.jpeg', bio='just testing')

    def test_instance(self):
        self.assertTrue(isinstance(self.new_profile, Profile))


class PostTestClass(TestCase):

    def setUp(self):
        self.new_post = Post(sitename='awards', url='#', Description=
            'test app stuff', image='image.jpeg', Technology='basic',
            country='kenya')

    def test_instance(self):
        self.assertTrue(isinstance(self.new_post, Post))

from django.test import TestCase
from .models import Profile,Post

# Create your tests here.

class ProfileTestClass(TestCase):
    #Set up method
    def setUp(self):
        self.new_profile = Profile(name="reggo",user_name="reggo",profile_picture="image.jpeg",bio="just testing")
    
    # Testing  instance
    def test_instance(self):
        self.assertTrue(isinstance(self.new_profile,Profile))
    
class PostTestClass(TestCase):

    def setUp(self):
        self.new_post=Post(sitename="awards",url="#",Description="test app stuff",image="image.jpeg",Technology="basic",country="kenya")

    def test_instance(self):
        self.assertTrue(isinstance(self.new_post,Post))
    

