Beispiel #1
0
	def test_troutslap(self):
		"""
		Test "troutslap foo"
		"""
		subject = "foo"
		pre = karma.Karma.store.lookup(subject)
		res = commands.troutslap(subject)
		assert res == "/me slaps %s around a bit with a large trout" % subject
		post = karma.Karma.store.lookup(subject)
		assert post == pre - 1
Beispiel #2
0
	def test_troutslap(self):
		"""
		Test "troutslap foo"
		"""
		subject = "foo"
		pre = karma.Karma.store.lookup(subject)
		res = commands.troutslap(subject)
		assert res == "/me slaps %s around a bit with a large trout" % subject
		post = karma.Karma.store.lookup(subject)
		assert post == pre - 1