Example #1
0
	def test_failsWhenNotCorrectJson(self):
		# arrange
		json = "not json"

		# act
		result = list(rjson.parseJson(json))

		# assert
		self.assertTrue(len(result) == 0)
Example #2
0
	def test_failsWhenNotString(self):
		# arrange
		json = 1
		
		# act
		result = list(rjson.parseJson(1))
		
		# assert
		self.assertTrue(len(result) == 0)