Example #1
0
 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()
Example #2
0
 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()
Example #3
0
 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
Example #4
0
 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