Example #1
0
	def test_pick_or(self):
		"""
		Test the pick command with a simple or expression
		"""
		res = commands.pick("fire or acid")
		assert logical_xor("fire" in res, "acid" in res)
		assert " or " not in res
Example #2
0
	def test_pick_or_intro(self):
		"""
		Test the pick command with an intro and a simple "or" expression
		"""
		res = commands.pick("how would you like to die, pmxbot: fire or acid")
		assert logical_xor("fire" in res, "acid" in res)
		assert "die" not in res and "pmxbot" not in res and " or " not in res
Example #3
0
	def test_pick_or_intro(self):
		"""
		Test the pick command with an intro and a simple "or" expression
		"""
		res = commands.pick("how would you like to die, pmxbot: fire or acid")
		assert logical_xor("fire" in res, "acid" in res)
		assert "die" not in res and "pmxbot" not in res and " or " not in res
Example #4
0
	def test_pick_or(self):
		"""
		Test the pick command with a simple or expression
		"""
		res = commands.pick("fire or acid")
		assert logical_xor("fire" in res, "acid" in res)
		assert " or " not in res
Example #5
0
	def test_pick_comma_intro(self):
		"""
		Test the pick command with an intro followed by two options separted
		by commas
		"""
		res = commands.pick("how would you like to die, pmxbot: fire, acid")
		assert logical_xor("fire" in res, "acid" in res)
		assert "die" not in res and "pmxbot" not in res
Example #6
0
	def test_pick_comma_intro(self):
		"""
		Test the pick command with an intro followed by two options separted
		by commas
		"""
		res = commands.pick("how would you like to die, pmxbot: fire, acid")
		assert logical_xor("fire" in res, "acid" in res)
		assert "die" not in res and "pmxbot" not in res
Example #7
0
	def test_pick_comma_or_intro(self):
		"""
		Test the pick command with an intro followed by options with commas
		and ors
		"""
		msg = "how would you like to die, pmxbot: gun, fire, acid or defenestration"
		res = commands.pick(msg)
		assert onetrue("gun" in res, "fire" in res, "acid" in res, "defenestration" in res)
		assert "die" not in res and "pmxbot" not in res and " or " not in res
Example #8
0
	def test_pick_comma_or_intro(self):
		"""
		Test the pick command with an intro followed by options with commas
		and ors
		"""
		msg = "how would you like to die, pmxbot: gun, fire, acid or defenestration"
		res = commands.pick(msg)
		assert onetrue("gun" in res, "fire" in res, "acid" in res, "defenestration" in res)
		assert "die" not in res and "pmxbot" not in res and " or " not in res
Example #9
0
	def test_pick_comma(self):
		"""
		Test the pick command with two options separated by commas
		"""
		res = commands.pick("fire, acid")
		assert logical_xor("fire" in res, "acid" in res)
Example #10
0
	def test_pick_comma(self):
		"""
		Test the pick command with two options separated by commas
		"""
		res = commands.pick("fire, acid")
		assert logical_xor("fire" in res, "acid" in res)