def METHOD_NAME(self):
    # For the entire allowable range of 0 <= k <= N, validate that
    # the sample is of the correct length and contains only unique items
    N = 100
    population = range(N)
    for k in range(N+1):
        s = self.gen.sample(population, k)
        self.assertEqual(len(s), k)
        uniq = set(s)
        self.assertEqual(len(uniq), k)
        self.assertTrue(uniq <= set(population))
    self.assertEqual(self.gen.sample([], 0), [])  # test edge case N==k==0
    # Exception raised if size of sample exceeds that of population
    self.assertRaises(ValueError, self.gen.sample, population, N+1)
    self.assertRaises(ValueError, self.gen.sample, [], -1)