Exemple #1
0
	def test_roll(self):
		"""
		Roll a die, both with no arguments and with some numbers
		"""
		res = int(commands.roll(nick="testrunner", rest="").split()[-1])
		assert res >= 0 and res <= 100
		n = 6668

		res = commands.roll(rest="%s" % n, nick="testrunner").split()[-1]
		res = int(res)
		assert res >= 0 and res <= n
Exemple #2
0
	def test_roll(self):
		"""
		Roll a die, both with no arguments and with some numbers
		"""
		res = int(commands.roll(nick="testrunner", rest="").split()[-1])
		assert res >= 0 and res <= 100
		n = 6668

		res = commands.roll(rest="%s" % n, nick="testrunner").split()[-1]
		res = int(res)
		assert res >= 0 and res <= n