예제 #1
0
 def test_validation_disabled_on_show(self):
     """ Test that validation is disabled on user retrieves """
     tracker = Tracker()
     command = tracker.make_command('user_show', invaliduser1)
     with raises_exact(
             errors.NotFound(reason=u'%s: user not found' % invaliduser1)):
         command()
예제 #2
0
 def test_validation_disabled_on_show(self):
     """ Test that validation is disabled on user retrieves """
     tracker = Tracker()
     command = tracker.make_command('user_show', invaliduser1)
     with raises_exact(errors.NotFound(
             reason=u'%s: user not found' % invaliduser1)):
         command()
예제 #3
0
    def test_disable_original_admin(self):
        """ Try to disable the only admin """
        tracker = Tracker()
        command = tracker.make_command('user_disable', admin1)

        with raises_exact(errors.LastMemberError(
                key=admin1, label=u'group', container=admin_group)):
            command()
예제 #4
0
    def test_disable_original_admin(self):
        """ Try to disable the only admin """
        tracker = Tracker()
        command = tracker.make_command('user_disable', admin1)

        with raises_exact(errors.LastMemberError(
                key=admin1, label=u'group', container=admin_group)):
            command()