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