def test_get_url_value(self): h = HandleRecord() res = h.get_url_value() assert res is None h.add_url('http://www.foo.bar/') assert 'http://www.foo.bar/' == h.get_url_value() assert 'http://www.rando.m/' != h.get_url_value()
def test_add_url(self): expected_result = 'http://www.google.com' h = HandleRecord() h.add_url(expected_result) res = h.get_url_value() assert res == expected_result