예제 #1
0
	def test_keelhaul(self):
		"""
		Test "keelhaul foo"
		"""
		subject = "foo"
		pre = karma.Karma.store.lookup(subject)
		res = commands.keelhaul(subject)
		assert res == ("/me straps %s to a dirty rope, tosses 'em overboard and pulls with great speed. Yarrr!" % subject)
		post = karma.Karma.store.lookup(subject)
		assert post == pre - 1
예제 #2
0
	def test_keelhaul(self):
		"""
		Test "keelhaul foo"
		"""
		subject = "foo"
		pre = karma.Karma.store.lookup(subject)
		res = commands.keelhaul(subject)
		assert res == ("/me straps %s to a dirty rope, tosses 'em overboard and pulls with great speed. Yarrr!" % subject)
		post = karma.Karma.store.lookup(subject)
		assert post == pre - 1