@@ -1339,6 +1339,59 @@ def test_destination_table_description_w_none(self):
13391339 self .assertEqual (
13401340 config ._properties ['load' ]['destinationTableProperties' ], expected )
13411341
1342+ def test_destination_table_friendly_name_missing (self ):
1343+ config = self ._get_target_class ()()
1344+ self .assertIsNone (config .destination_table_friendly_name )
1345+
1346+ def test_destination_table_friendly_name_hit (self ):
1347+ friendly_name = 'Friendly Name'
1348+ config = self ._get_target_class ()()
1349+ config ._properties ['load' ]['destinationTableProperties' ] = {
1350+ 'friendlyName' : friendly_name ,
1351+ }
1352+ self .assertEqual (
1353+ config .destination_table_friendly_name , friendly_name )
1354+
1355+ def test_destination_table_friendly_name_setter (self ):
1356+ friendly_name = 'Friendly Name'
1357+ config = self ._get_target_class ()()
1358+ config .destination_table_friendly_name = friendly_name
1359+ expected = {
1360+ 'friendlyName' : friendly_name ,
1361+ }
1362+ self .assertEqual (
1363+ config ._properties ['load' ]['destinationTableProperties' ], expected )
1364+
1365+ def test_destination_table_friendly_name_setter_w_descr_already (self ):
1366+ friendly_name = 'Friendly Name'
1367+ description = 'Description'
1368+ config = self ._get_target_class ()()
1369+ config ._properties ['load' ]['destinationTableProperties' ] = {
1370+ 'description' : description ,
1371+ }
1372+ config .destination_table_friendly_name = friendly_name
1373+ expected = {
1374+ 'friendlyName' : friendly_name ,
1375+ 'description' : description ,
1376+ }
1377+ self .assertEqual (
1378+ config ._properties ['load' ]['destinationTableProperties' ], expected )
1379+
1380+ def test_destination_table_friendly_name_w_none (self ):
1381+ friendly_name = 'Friendly Name'
1382+ description = 'Description'
1383+ config = self ._get_target_class ()()
1384+ config ._properties ['load' ]['destinationTableProperties' ] = {
1385+ 'description' : description ,
1386+ 'friendlyName' : friendly_name ,
1387+ }
1388+ config .destination_table_friendly_name = None
1389+ expected = {
1390+ 'description' : description ,
1391+ }
1392+ self .assertEqual (
1393+ config ._properties ['load' ]['destinationTableProperties' ], expected )
1394+
13421395 def test_encoding_missing (self ):
13431396 config = self ._get_target_class ()()
13441397 self .assertIsNone (config .encoding )
0 commit comments