def test_get_db_prep_value_returns_oid_when_value_LargeObjectFile(self): oid = randint(1, 100) field = LargeObjectField() obj_file = LargeObjectFile() obj_file.oid = oid self.assertEqual(oid, field.get_db_prep_value(obj_file))
def test_get_db_prep_value_returns_None_when_value_None(self): field = LargeObjectField() self.assertEqual(None, field.get_db_prep_value(None))