'Test Perspective model with all parameters'

def test_model_Perspective_full(self):

    name = 'test'
    details = 'perspective    details'
    obj = Perspective(name='test', details=details)
    obj.save()
    self.assertIsNotNone(obj.id)
    obj = Perspective.objects.get(id=obj.id)
    self.assertEqual(obj.name, name)
    self.assertEqual(obj.details, details)
    module = Module.objects.all()[0]
    obj.modules.add(module)
    self.assertQuerysetEqual(obj.modules.all(), map(repr, [module]))
    self.assertQuerysetEqual(obj.get_modules(), map(repr, [module]))
    self.assertEqual(obj.get_absolute_url(), '/admin/perspective/view/{}'.format(obj.id))
