'Make sure invalid categories can\'t be saved.
Invalid categories cause errors when viewing documents.'

def test_validate_category_on_save(self):

    d = DocumentFactory.build(category=9999)
    self.assertRaises(ValidationError, d.save)
