chevah/commons — pull request #12 by adiroiban (2012-12-06 19:14:00+00:00)
Title: Fix getUniqueInteger method

[task] Fix getUniqueInteger method and add deprecated docstring for unique_id and unique_string.

Problem description
===================

factory.getUniqueInteger should be a method

Due to a copy/paste error is was written as a property.

No code was using it, so the error was not detected yet.

Changes description
===================

factory.getUniqueInteger is not a method.

unique_id is marked as deprecated and calls getUniqueInteger

unique_string is marked as deprecated and calls getUniqueString

Some basic tests were written for getUniqueInteger getUniqueString

How to try and test the changes
===============================

All test should pass.

getUniqueInteger is still not used in any real test, so there is nothing much to check now.