<reponame>Ferdous-Al-Imran/Aqualizer
from django.test import TestCase
from .models import User,ParameterList,ValueEntry,ParameterIdeals


class CreateUser(TestCase):
	def setUp(self):
		User.objects.create(username="Nazrul Islam",password="<PASSWORD>")
		User.objects.create(username="Anjan Bashak",password="<PASSWORD>")
		# User.objects.create(username="Nazrul Islam",password="<PASSWORD>")


	def test_user_is_created(self):
		user1=User.objects.get(username="Nazrul Islam")
		self.assertEqual(user1.username,"Nazrul Islam")

	
	def test_password_matches(self):
		user1=User.objects.get(username="Nazrul Islam")
		self.assertEqual(user1.password,"<PASSWORD>")














from django.test import TestCase
from .models import User,ParameterList,ValueEntry,ParameterIdeals


class CreateUser(TestCase):
	def setUp(self):
		User.objects.create(username="Nazrul Islam",password="<PASSWORD>")
		User.objects.create(username="Anjan Bashak",password="<PASSWORD>")
		# User.objects.create(username="Nazrul Islam",password="<PASSWORD>")


	def test_user_is_created(self):
		user1=User.objects.get(username="Nazrul Islam")
		self.assertEqual(user1.username,"Nazrul Islam")

	
	def test_password_matches(self):
		user1=User.objects.get(username="Nazrul Islam")
		self.assertEqual(user1.password,"<PASSWORD>")
# User.objects.create(username="Nazrul Islam",password="<PASSWORD>")