def test_get_content_remote(self): """Test that we can get a remove content""" TEST_PATH = "http://google.com" TEST_CONTENT = "Feeling Lucky" con = inliner.get_content(TEST_PATH) ok_(TEST_CONTENT in con, "Should find {0} in the test content: {1}".format( TEST_CONTENT, con))
def test_get_content_local(self): """Test that we can get a local content""" TEST_PATH = "tests/sample/local.html" TEST_CONTENT = "Local Test" con = inliner.get_content(TEST_PATH) ok_(TEST_CONTENT in con, "Should find {0} in the test content: {1}".format( TEST_CONTENT, con))