def test_imotivate(self): """ Test that ironic/sarcastic motivate actually works. """ subject = "foo" pre = karma.Karma.store.lookup(subject) res = commands.imotivate(rest=subject, channel="#test") assert res == """you're "doing" "good" "work", %s!""" % subject post = karma.Karma.store.lookup(subject) assert post == pre - 1