class RegisterModelTest(TestCase): def setUp(self): self.obj = Register(name='Raffael Tancman', email='*****@*****.**') self.obj.save() def test_create(self): self.assertTrue(Register.objects.exists()) def test_created_at(self): self.assertIsInstance(self.obj.created_at, datetime)
class RegisterModelTest(TestCase): def setUp(self): self.obj = Register( name= 'Raffael Tancman', email='*****@*****.**' ) self.obj.save() def test_create(self): self.assertTrue(Register.objects.exists()) def test_created_at(self): self.assertIsInstance(self.obj.created_at, datetime)
def setUp(self): self.obj = Register( name= 'Raffael Tancman', email='*****@*****.**' ) self.obj.save()
def setUp(self): self.obj = Register(name='Raffael Tancman', email='*****@*****.**') self.obj.save()