def test_none(self): """If there are no revisions, return None.""" d = DocumentFactory() eq_(None, d.localizable_or_latest_revision())