Exemplo n.º 1
0
 def test_encode_RAISE_when_INPUT_UN_JSONABLE(self):
     with self.assertRaises(TypeError):
         JsonTypeCase.encode(self.wrong_type_input)
Exemplo n.º 2
0
 def test_encode_RAISE_when_INPUT_UN_JSONABLE(self):
     with self.assertRaises(TypeError):
         JsonTypeCase.encode(self.wrong_type_input)
Exemplo n.º 3
0
 def test_encode_with_JSONABLE(self):
     assert JsonTypeCase.encode(self.s) == json.dumps(self.s)
Exemplo n.º 4
0
 def test_encode_with_JSONABLE(self):
     assert JsonTypeCase.encode(self.s) == json.dumps(self.s)