def test_json_encode_file(self): file = StringIO() self.assertEqual( json_encode(file), 'In memory file: ', )
def test_json_encode_datetime(self): now = datetime.utcnow() self.assertEqual( json_encode(now), now.isoformat(), )
def test_json_encode_set(self): assert json_encode({1, 2, 3}) == [1, 2, 3]
def test_json_encode_file(self): file = StringIO() assert json_encode(file) == 'In memory file: '
def test_json_encode_datetime(self): now = datetime.utcnow() assert json_encode(now) == now.isoformat()
def test_json_encode_function(self): assert json_encode( get_operation_and_args) == 'Function: get_operation_and_args'
def test_json_encode_set(self): self.assertEqual( json_encode({1, 2, 3}), [1, 2, 3], )
def test_json_encode_function(self): self.assertEqual( json_encode(setup_arguments), 'setup_arguments', )
def test_json_encode_function(self): self.assertEqual( json_encode(get_operation_and_args), 'get_operation_and_args', )