Did I find the right examples for you? yes no

All Samples(6)  |  Call(6)  |  Derive(0)  |  Import(0)

src/d/j/django_couchdb_utils-0.5/django_couchdb_utils/auth/tests.py   django_couchdb_utils(Download)
 
        user = User.get_user(data['username'])
        self.assertIsNotNone(user)
        self.assertEqual(user.username, data['username'])
 
        user = User.get_user_by_email(data['email'])
        self.assertIsNotNone(user)
 
        user = authenticate(username=authdata.get('username'), password=authdata.get('password'))
        self.assertIsNotNone(user)
 
    def test_user_profile(self):
 
        userprofile = UserProfile.get_userprofile(profiledata['user_id'])
        self.assertIsNotNone(userprofile)
 
        self.assertEqual(user.get_profile().age, profiledata['age'])

src/d/j/django_couchdb_utils-0.5/django_couchdb_utils/sessions/tests.py   django_couchdb_utils(Download)
 
        session = Session.get_session(data['session_key'])
        self.assertIsNotNone(session)
 
        for k, v in data.items():
 
        session2 = Session.get_session(data2['session_key'])
        self.assertIsNotNone(session2)