def test_uri_password(self, mock_config, mock_tempdir, mock_strftime): f = Flare() _, password_found = f._strip_password(os.path.join(get_mocked_temp(), mock_cfgs['uri_password'])) self.assertEqual( password_found, " - this file contains a password in a uri which has been removed in the version collected" )