I've added some basic tests for the search functionality, although it stubs out all the account discovery code and provides a fake DocumentsEntry class.
My original plan was to use GData.Parsable.new_from_xml() to build the feed from some sample XML, but that segfaults the interpreter. A quick poke with GDB shows that this wouldn't work from C either: it looks like you can only decode into GData.Feed subclasses from the query code path.
The previewer test is also disabled because I wasn't able to initialise Unity.ScopeResult.metadata from Python in a way that wouldn't cause it to segfault.
I've added some basic tests for the search functionality, although it stubs out all the account discovery code and provides a fake DocumentsEntry class.
My original plan was to use GData.Parsable. new_from_ xml() to build the feed from some sample XML, but that segfaults the interpreter. A quick poke with GDB shows that this wouldn't work from C either: it looks like you can only decode into GData.Feed subclasses from the query code path.
The previewer test is also disabled because I wasn't able to initialise Unity.ScopeResu lt.metadata from Python in a way that wouldn't cause it to segfault.