def test_convert_one_column_from_json_2(self): df = DataForTests.df_converter col_json = 'json' col_name = 'order.id' result = Converter.convert_one_column_from_json(df, col_json, col_name) result = result.to_dict() expected = {0: '', 1: '111111111'} self.assertDictEqual(result, expected, 'incorrect default data')
def test_convert_one_column_from_json(self): df = DataForTests.df_converter col_json = 'json' col_name = 'client.email' result = Converter.convert_one_column_from_json(df, col_json, col_name) result = result.to_dict() expected = {0: '*****@*****.**', 1: '*****@*****.**'} self.assertDictEqual(result, expected, 'incorrect default data')