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