Ejemplo n.º 1
0
	def test_paste_real_user(self):
		"""
		Test the pastebin with a valid user with an existing paste
		"""
		pytest.xfail("a.libpa.st is down")
		person = 'vbSptH3ByfQQ6h'
		res = commands.paste(c, e, '#test', person, '')
		assert res == "http://a.libpa.st/40a4345a-4e4b-40d8-ad06-c0a22a26b282"
Ejemplo n.º 2
0
	def test_paste_newuser(self):
		"""
		Test the pastebin with an unknown user
		"""
		pytest.xfail("a.libpa.st is down")
		person = str(uuid.uuid4())[:9]
		res = commands.paste(c, e, '#test', person, '')
		print(res)
		assert res == ("hmm.. I didn't find a recent paste of yours, %s. "
			"Checkout http://a.libpa.st/" % person)