Add factory_boy and mock.
Fix Bug 870494: Add basic snippet functionality.