def test_sanity(self): """Stupid sanity check.""" ids = [_get_unique_id() for _ in xrange(100)] self.assertEqual(len(set(ids)), 100)
def test_type(self): """It must be a string.""" newid = _get_unique_id() self.assertTrue(isinstance(newid, str))