예제 #1
0
    def test_not_modified(self):
        """ Save an unmodified BonitaUser """
        user = BonitaUser(username=u'myusername', password=u'mypassword')
        # Mark user as unmodified
        user.clear_state()

        user.save()

        assert user.is_modified is False
예제 #2
0
    def test_not_modified(self):
        """ Update professional contact infos for unmodified BonitaUser """
        user = BonitaUser(username=u'myusername', password=u'mypassword')
        user._uuid = 'myuuid'

        # Mark user as unmodified
        user.clear_state()

        user._update_professional_contact_infos()

        assert user.is_modified is False
예제 #3
0
    def test_not_modified(self):
        """ Update password for unmodified BonitaUser """
        user = BonitaUser(username=u'myusername', password=u'mypassword')
        user._uuid = 'myuuid'

        # Mark user as unmodified
        user.clear_state()

        user._update_password()

        assert user.is_modified is False