intertwingly

It’s just data

FOAF OnlineAccount support


Elias Torres: if you want to get some of the OnlineAccount magic, add the following to your foaf:Person: …

I’m pleased that Elias wrote the code.  Somehow, he must have forgotten to commit the testcase for this function.  :-)

No matter, I’ll rectify that.  First, I took Elias’s foaf file.  Then I made a small test config.ini.  Finally, I added the following code:

def test_online_accounts(self):
    config.load('tests/data/config/foaf.ini')
    feeds = config.subscriptions()
    feeds.sort()
    self.assertEqual(['http://api.flickr.com/services/feeds/' +
        'photos_public.gne?id=77366516@N00',
        'http://del.icio.us/rss/eliast',
        'http://torrez.us/feed/rdf'], feeds)

Now, the code that Elias wrote will continue to work.