예제 #1
0
 def test_decode_RAISE_when_INPUT_WRONG_TYPE(self):
     with self.assertRaises(TypeError):
         JsonTypeCase.decode(self.wrong_type_input)
예제 #2
0
 def test_decode_RETURN_JSONABLE(self):
     assert JsonTypeCase.decode(json.dumps(self.s)) == self.s
예제 #3
0
 def test_decode_RETURN_NONE(self):
     assert JsonTypeCase.decode(None) == None
예제 #4
0
 def test_decode_RAISE_when_INPUT_WRONG_TYPE(self):
     with self.assertRaises(TypeError):
         JsonTypeCase.decode(self.wrong_type_input)
예제 #5
0
 def test_decode_RETURN_JSONABLE(self):
     assert JsonTypeCase.decode(json.dumps(self.s)) == self.s
예제 #6
0
 def test_decode_RETURN_NONE(self):
     assert JsonTypeCase.decode(None) == None