'Saving a Revision with a bad based_on value raises an error.'

def test_save_bad_based_on(self):

    r1 = RevisionFactory()
    r2 = RevisionFactory.build(based_on=r1)
    self.assertRaises(ProgrammingError, r2.save)
