Ubuntu Pastebin

Paste from smoser at Wed, 6 Dec 2017 19:34:53 +0000

Download as text
  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
$ tox-venv pylint python3 -m pylint cloudinit/ tests/ tools/

************* Module tests.cloud_tests.bddeb
tests/cloud_tests/bddeb.py:88: [E1101(no-member), setup_build] Module 'tests.cloud_tests.images' has no 'get_image' member
tests/cloud_tests/bddeb.py:92: [E1101(no-member), setup_build] Module 'tests.cloud_tests.snapshots' has no 'get_snapshot' member
tests/cloud_tests/bddeb.py:99: [E1101(no-member), setup_build] Module 'tests.cloud_tests.instances' has no 'get_instance' member
************* Module tests.cloud_tests.util
tests/cloud_tests/util.py:265: [E1136(unsubscriptable-object), shell_safe] Value 'out' is unsubscriptable
************* Module tests.cloud_tests.testcases.base
tests/cloud_tests/testcases/base.py:35: [E0401(import-error), CloudTestCase.get_data_file] Unable to import 'ipdb'
************* Module tests.unittests.test_reporting
tests/unittests/test_reporting.py:129: [W1505(deprecated-method), TestBaseReportingHandler.test_base_reporting_handler_is_abstract] Using deprecated method assertRaisesRegexp()
************* Module tests.unittests.test_vmware_config_file
tests/unittests/test_vmware_config_file.py:136: [E1102(not-callable), TestVmwareConfigFile.test_config_reset_passwd] conf.reset_password is not callable
************* Module tests.unittests.test_templating
tests/unittests/test_templating.py:17: [W0104(pointless-statement), ] Statement seems to have no effect
************* Module tests.unittests.test_util
tests/unittests/test_util.py:660: [W1505(deprecated-method), TestSubp.test_subp_warn_missing_shebang] Using deprecated method assertRaisesRegexp()
************* Module tests.unittests.test_cs_util
tests/unittests/test_cs_util.py:41: [E1101(no-member), CepkoResultTests.test_getitem] Instance of 'CepkoResultTests' has no 'c' member
tests/unittests/test_cs_util.py:48: [E1101(no-member), CepkoResultTests.test_len] Instance of 'CepkoResultTests' has no 'c' member
tests/unittests/test_cs_util.py:51: [E1101(no-member), CepkoResultTests.test_contains] Instance of 'CepkoResultTests' has no 'c' member
tests/unittests/test_cs_util.py:59: [E1101(no-member), CepkoResultTests.test_iter] Instance of 'CepkoResultTests' has no 'c' member
tests/unittests/test_cs_util.py:62: [E1101(no-member), CepkoResultTests.test_with_list_as_result] Instance of 'CepkoResultTests' has no 'c' member
************* Module tests.unittests.test_datasource.test_ec2
tests/unittests/test_datasource/test_ec2.py:332: [W0104(pointless-statement), TestEc2.test_network_config_cached_property_refreshed_on_upgrade] Statement seems to have no effect
************* Module tests.unittests.test_datasource.test_azure
tests/unittests/test_datasource/test_azure.py:41: [E1101(no-member), construct_valid_ovf_env] Instance of 'str' has no 'get' member
tests/unittests/test_datasource/test_azure.py:42: [E1101(no-member), construct_valid_ovf_env] Instance of 'str' has no 'items' member
tests/unittests/test_datasource/test_azure.py:898: [W0235(useless-super-delegation), TestCanDevBeReformatted.setUp] Useless super delegation in method 'setUp'
tests/unittests/test_datasource/test_azure.py:939: [E1101(no-member), TestCanDevBeReformatted.patchup] Instance of 'TestCanDevBeReformatted' has no 'm_exists' member
tests/unittests/test_datasource/test_azure.py:940: [E1101(no-member), TestCanDevBeReformatted.patchup] Instance of 'TestCanDevBeReformatted' has no 'm_realpath' member
tests/unittests/test_datasource/test_azure.py:941: [E1101(no-member), TestCanDevBeReformatted.patchup] Instance of 'TestCanDevBeReformatted' has no 'm_has_ntfs_filesystem' member
tests/unittests/test_datasource/test_azure.py:942: [E1101(no-member), TestCanDevBeReformatted.patchup] Instance of 'TestCanDevBeReformatted' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_azure.py:943: [E1101(no-member), TestCanDevBeReformatted.patchup] Instance of 'TestCanDevBeReformatted' has no 'm_partitions_on_device' member
tests/unittests/test_datasource/test_azure.py:955: [W1503(redundant-unittest-assert), TestCanDevBeReformatted.test_three_partitions_is_false] Redundant use of assertFalse with constant value False
tests/unittests/test_datasource/test_azure.py:974: [W1503(redundant-unittest-assert), TestCanDevBeReformatted.test_two_partitions_not_ntfs_false] Redundant use of assertFalse with constant value False
tests/unittests/test_datasource/test_azure.py:987: [W1503(redundant-unittest-assert), TestCanDevBeReformatted.test_two_partitions_ntfs_populated_false] Redundant use of assertFalse with constant value False
************* Module tests.unittests.test_datasource.test_digitalocean
tests/unittests/test_datasource/test_digitalocean.py:212: [E1120(no-value-for-parameter), TestNetworkConvert.test_networking_defined] No value for argument 'm_get_by_mac' in method call
tests/unittests/test_datasource/test_digitalocean.py:245: [E1120(no-value-for-parameter), TestNetworkConvert._get_nic_definition] No value for argument 'm_get_by_mac' in method call
tests/unittests/test_datasource/test_digitalocean.py:269: [E1120(no-value-for-parameter), TestNetworkConvert.test_correct_gateways_defined] No value for argument 'm_get_by_mac' in method call
************* Module tests.unittests.test_distros.test_create_users
tests/unittests/test_distros/test_create_users.py:10: [W0102(dangerous-default-value), MyBaseDistro.__init__] Dangerous default value {} as argument
tests/unittests/test_distros/test_create_users.py:10: [W0102(dangerous-default-value), MyBaseDistro.__init__] Dangerous default value {} as argument
tests/unittests/test_distros/test_create_users.py:10: [W0235(useless-super-delegation), MyBaseDistro.__init__] Useless super delegation in method '__init__'
tests/unittests/test_distros/test_create_users.py:45: [E1003(bad-super-call), TestCreateUser.setUp] Bad first argument 'TestCase' given to super()
************* Module tests.unittests.test_datasource.test_ovf
tests/unittests/test_datasource/test_ovf.py:85: [E1101(no-member), TestTransportIso9660.setUp] Instance of 'TestTransportIso9660' has no 'm_get_ovf_env' member
tests/unittests/test_datasource/test_ovf.py:96: [E1101(no-member), TestTransportIso9660.test_find_already_mounted] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:121: [E1101(no-member), TestTransportIso9660.test_find_already_mounted_skips_non_iso9660] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:139: [E1101(no-member), TestTransportIso9660.test_find_already_mounted_matches_kname] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:148: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:149: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660] Instance of 'TestTransportIso9660' has no 'm_find_devs_with' member
tests/unittests/test_datasource/test_ovf.py:150: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:154: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:162: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660_check_regex] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:163: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660_check_regex] Instance of 'TestTransportIso9660' has no 'm_find_devs_with' member
tests/unittests/test_datasource/test_ovf.py:165: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660_check_regex] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:169: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660_check_regex] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:177: [E1101(no-member), TestTransportIso9660.test_mount_cb_not_called_no_matches] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:178: [E1101(no-member), TestTransportIso9660.test_mount_cb_not_called_no_matches] Instance of 'TestTransportIso9660' has no 'm_find_devs_with' member
tests/unittests/test_datasource/test_ovf.py:182: [E1101(no-member), TestTransportIso9660.test_mount_cb_not_called_no_matches] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:189: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_require_iso_false] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:190: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_require_iso_false] Instance of 'TestTransportIso9660' has no 'm_find_devs_with' member
tests/unittests/test_datasource/test_ovf.py:191: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_require_iso_false] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:195: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_require_iso_false] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
************* Module tests.unittests.test_distros.test_netconfig
tests/unittests/test_distros/test_netconfig.py:191: [W0235(useless-super-delegation), TestNetCfgDistro.setUp] Useless super delegation in method 'setUp'
************* Module tests.unittests.test_handler.test_handler_lxd
tests/unittests/test_handler/test_handler_lxd.py:28: [W0235(useless-super-delegation), TestLxd.setUp] Useless super delegation in method 'setUp'
************* Module tests.unittests.test_handler.test_handler_zypper_add_repo
tests/unittests/test_handler/test_handler_zypper_add_repo.py:74: [W1505(deprecated-method), TestConfig.test_write_repo] Using deprecated method readfp()
************* Module tests.unittests.test_handler.test_handler_power_state
tests/unittests/test_handler/test_handler_power_state.py:12: [W0235(useless-super-delegation), TestLoadPowerState.setUp] Useless super delegation in method 'setUp'
tests/unittests/test_handler/test_handler_power_state.py:13: [E1003(bad-super-call), TestLoadPowerState.setUp] Bad first argument 'self.__class__' given to super()
************* Module tests.unittests.test_handler.test_handler_yum_add_repo
tests/unittests/test_handler/test_handler_yum_add_repo.py:62: [W1505(deprecated-method), TestConfig.test_write_config] Using deprecated method readfp()
tests/unittests/test_handler/test_handler_yum_add_repo.py:99: [W1505(deprecated-method), TestConfig.test_write_config_array] Using deprecated method readfp()
************* Module make-mime
tools/make-mime.py:26: [E1120(no-value-for-parameter), file_content_type] No value for argument 'message' in constructor call
************* Module hacking
tools/hacking.py:27: [E0401(import-error), ] Unable to import 'pep8'
tools/hacking.py:155: [W0122(exec-used), add_cloud] Use of exec
************* Module mock-meta
tools/mock-meta.py:30: [W0402(deprecated-module), ] Uses of a deprecated module 'optparse'
tests/unittests/test_reporting.py:129: [W1505(deprecated-method), TestBaseReportingHandler.test_base_reporting_handler_is_abstract] Using deprecated method assertRaisesRegexp()
tests/unittests/test_vmware_config_file.py:136: [E1102(not-callable), TestVmwareConfigFile.test_config_reset_passwd] conf.reset_password is not callable
tests/unittests/test_util.py:660: [W1505(deprecated-method), TestSubp.test_subp_warn_missing_shebang] Using deprecated method assertRaisesRegexp()
tests/unittests/test_templating.py:17: [W0104(pointless-statement), ] Statement seems to have no effect
tests/unittests/test_cs_util.py:41: [E1101(no-member), CepkoResultTests.test_getitem] Instance of 'CepkoResultTests' has no 'c' member
tests/unittests/test_cs_util.py:48: [E1101(no-member), CepkoResultTests.test_len] Instance of 'CepkoResultTests' has no 'c' member
tests/unittests/test_cs_util.py:51: [E1101(no-member), CepkoResultTests.test_contains] Instance of 'CepkoResultTests' has no 'c' member
tests/unittests/test_cs_util.py:59: [E1101(no-member), CepkoResultTests.test_iter] Instance of 'CepkoResultTests' has no 'c' member
tests/unittests/test_cs_util.py:62: [E1101(no-member), CepkoResultTests.test_with_list_as_result] Instance of 'CepkoResultTests' has no 'c' member
tests/unittests/test_datasource/test_azure.py:41: [E1101(no-member), construct_valid_ovf_env] Instance of 'str' has no 'get' member
tests/unittests/test_datasource/test_azure.py:42: [E1101(no-member), construct_valid_ovf_env] Instance of 'str' has no 'items' member
tests/unittests/test_datasource/test_azure.py:898: [W0235(useless-super-delegation), TestCanDevBeReformatted.setUp] Useless super delegation in method 'setUp'
tests/unittests/test_datasource/test_azure.py:939: [E1101(no-member), TestCanDevBeReformatted.patchup] Instance of 'TestCanDevBeReformatted' has no 'm_exists' member
tests/unittests/test_datasource/test_azure.py:940: [E1101(no-member), TestCanDevBeReformatted.patchup] Instance of 'TestCanDevBeReformatted' has no 'm_realpath' member
tests/unittests/test_datasource/test_azure.py:941: [E1101(no-member), TestCanDevBeReformatted.patchup] Instance of 'TestCanDevBeReformatted' has no 'm_has_ntfs_filesystem' member
tests/unittests/test_datasource/test_azure.py:942: [E1101(no-member), TestCanDevBeReformatted.patchup] Instance of 'TestCanDevBeReformatted' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_azure.py:943: [E1101(no-member), TestCanDevBeReformatted.patchup] Instance of 'TestCanDevBeReformatted' has no 'm_partitions_on_device' member
tests/unittests/test_datasource/test_azure.py:955: [W1503(redundant-unittest-assert), TestCanDevBeReformatted.test_three_partitions_is_false] Redundant use of assertFalse with constant value False
tests/unittests/test_datasource/test_azure.py:974: [W1503(redundant-unittest-assert), TestCanDevBeReformatted.test_two_partitions_not_ntfs_false] Redundant use of assertFalse with constant value False
tests/unittests/test_datasource/test_azure.py:987: [W1503(redundant-unittest-assert), TestCanDevBeReformatted.test_two_partitions_ntfs_populated_false] Redundant use of assertFalse with constant value False
tests/unittests/test_datasource/test_ec2.py:332: [W0104(pointless-statement), TestEc2.test_network_config_cached_property_refreshed_on_upgrade] Statement seems to have no effect
tests/unittests/test_datasource/test_digitalocean.py:212: [E1120(no-value-for-parameter), TestNetworkConvert.test_networking_defined] No value for argument 'm_get_by_mac' in method call
tests/unittests/test_datasource/test_digitalocean.py:245: [E1120(no-value-for-parameter), TestNetworkConvert._get_nic_definition] No value for argument 'm_get_by_mac' in method call
tests/unittests/test_datasource/test_digitalocean.py:269: [E1120(no-value-for-parameter), TestNetworkConvert.test_correct_gateways_defined] No value for argument 'm_get_by_mac' in method call
tests/unittests/test_datasource/test_ovf.py:85: [E1101(no-member), TestTransportIso9660.setUp] Instance of 'TestTransportIso9660' has no 'm_get_ovf_env' member
tests/unittests/test_datasource/test_ovf.py:96: [E1101(no-member), TestTransportIso9660.test_find_already_mounted] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:121: [E1101(no-member), TestTransportIso9660.test_find_already_mounted_skips_non_iso9660] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:139: [E1101(no-member), TestTransportIso9660.test_find_already_mounted_matches_kname] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:148: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:149: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660] Instance of 'TestTransportIso9660' has no 'm_find_devs_with' member
tests/unittests/test_datasource/test_ovf.py:150: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:154: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:162: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660_check_regex] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:163: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660_check_regex] Instance of 'TestTransportIso9660' has no 'm_find_devs_with' member
tests/unittests/test_datasource/test_ovf.py:165: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660_check_regex] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:169: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_on_blkdevs_with_iso9660_check_regex] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:177: [E1101(no-member), TestTransportIso9660.test_mount_cb_not_called_no_matches] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:178: [E1101(no-member), TestTransportIso9660.test_mount_cb_not_called_no_matches] Instance of 'TestTransportIso9660' has no 'm_find_devs_with' member
tests/unittests/test_datasource/test_ovf.py:182: [E1101(no-member), TestTransportIso9660.test_mount_cb_not_called_no_matches] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:189: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_require_iso_false] Instance of 'TestTransportIso9660' has no 'm_mounts' member
tests/unittests/test_datasource/test_ovf.py:190: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_require_iso_false] Instance of 'TestTransportIso9660' has no 'm_find_devs_with' member
tests/unittests/test_datasource/test_ovf.py:191: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_require_iso_false] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_datasource/test_ovf.py:195: [E1101(no-member), TestTransportIso9660.test_mount_cb_called_require_iso_false] Instance of 'TestTransportIso9660' has no 'm_mount_cb' member
tests/unittests/test_distros/test_create_users.py:10: [W0102(dangerous-default-value), MyBaseDistro.__init__] Dangerous default value {} as argument
tests/unittests/test_distros/test_create_users.py:10: [W0102(dangerous-default-value), MyBaseDistro.__init__] Dangerous default value {} as argument
tests/unittests/test_distros/test_create_users.py:10: [W0235(useless-super-delegation), MyBaseDistro.__init__] Useless super delegation in method '__init__'
tests/unittests/test_distros/test_create_users.py:45: [E1003(bad-super-call), TestCreateUser.setUp] Bad first argument 'TestCase' given to super()
tests/unittests/test_distros/test_netconfig.py:191: [W0235(useless-super-delegation), TestNetCfgDistro.setUp] Useless super delegation in method 'setUp'
tests/unittests/test_handler/test_handler_lxd.py:28: [W0235(useless-super-delegation), TestLxd.setUp] Useless super delegation in method 'setUp'
tests/unittests/test_handler/test_handler_zypper_add_repo.py:74: [W1505(deprecated-method), TestConfig.test_write_repo] Using deprecated method readfp()
tests/unittests/test_handler/test_handler_power_state.py:12: [W0235(useless-super-delegation), TestLoadPowerState.setUp] Useless super delegation in method 'setUp'
tests/unittests/test_handler/test_handler_power_state.py:13: [E1003(bad-super-call), TestLoadPowerState.setUp] Bad first argument 'self.__class__' given to super()
tests/unittests/test_handler/test_handler_yum_add_repo.py:62: [W1505(deprecated-method), TestConfig.test_write_config] Using deprecated method readfp()
tests/unittests/test_handler/test_handler_yum_add_repo.py:99: [W1505(deprecated-method), TestConfig.test_write_config_array] Using deprecated method readfp()

------------------------------------------------------------------
Your code has been rated at 9.90/10 (previous run: 9.82/10, +0.08)
Download as text