Esempio n. 1
0
 def test_registered_user_csl(self):
     # Tests the csl name for a registered user
     user = OSFUser.create_confirmed(username=fake_email(),
                                     password='******',
                                     fullname=fake.name())
     if user.is_registered:
         assert bool(user.csl_name() == {
             'given': user.csl_given_name,
             'family': user.family_name,
         })
Esempio n. 2
0
 def test_registered_user_csl(self):
     # Tests the csl name for a registered user
     user = OSFUser.create_confirmed(
         username=fake_email(), password='******', fullname=fake.name()
     )
     if user.is_registered:
         assert bool(
             user.csl_name() ==
             {
                 'given': user.csl_given_name,
                 'family': user.family_name,
             }
         )