import pytest
import linkatos.confirmation as confirmation


def test_no_confirmation_with_url():
    expecting_confirmation = False
    parsed_m = {'out': 'http://ex.org', 'channel': 'ch', 'type': 'url'}

    assert confirmation.update_confirmation_if_url(parsed_m,
                                                   expecting_confirmation) is True


# to do test process_confirmation_if_yn(parsed_message, expecting_confirmation)

def test_confirmation_with_url():
    expecting_confirmation = True
    parsed_m = {'out': 'http://ex.org', 'channel': 'ch', 'type': 'url'}

    assert confirmation.update_confirmation_if_url(parsed_m,
                                                   expecting_confirmation) is True


def test_confirmation_without_url():
    expecting_confirmation = True
    parsed_m = {'out': None, 'channel': 'ch', 'type': None}

    assert confirmation.update_confirmation_if_url(parsed_m,
                                                expecting_confirmation) is True


def test_no_confirmation_without_url():
    expecting_confirmation = False
    parsed_m = {'out': None, 'channel': 'ch', 'type': None}

    assert confirmation.update_confirmation_if_url(parsed_m,
                                               expecting_confirmation) is False

@@ -226,37 +226,24 @@
 tion.update_
-confirmation_
 if_url(parse
@@ -239,32 +239,32 @@
 f_url(parsed_m,%0A
+
                 
@@ -581,37 +581,24 @@
 tion.update_
-confirmation_
 if_url(parse
@@ -846,37 +846,24 @@
 tion.update_
-confirmation_
 if_url(parse
@@ -1077,32 +1077,32 @@
  'type': None%7D%0A%0A
+
     assert confi
@@ -1116,29 +1116,16 @@
 .update_
-confirmation_
 if_url(p

Fix change of function names