'Tests involving multiple users.'

def test_multiple_users(self):

    expected = (([None] * 2) + ([30.0] * 8))
    results = list(self._check(10, 'PUT', '/anything', 'user0'))
    self.assertEqual(expected, results)
    expected = (([None] * 10) + ([6.0] * 10))
    results = list(self._check(20, 'PUT', '/anything', 'user1'))
    self.assertEqual(expected, results)
    expected = (([None] * 10) + ([6.0] * 5))
    results = list(self._check(15, 'PUT', '/anything', 'user2'))
    self.assertEqual(expected, results)
    expected = ([None] * 20)
    results = list(self._check(20, 'PUT', '/anything', 'user3'))
    self.assertEqual(expected, results)
    self.time += 1.0
    expected = ([5.0] * 10)
    results = list(self._check(10, 'PUT', '/anything', 'user1'))
    self.assertEqual(expected, results)
    self.time += 1.0
    expected = ([4.0] * 5)
    results = list(self._check(5, 'PUT', '/anything', 'user2'))
    self.assertEqual(expected, results)
    expected = [28.0]
    results = list(self._check(1, 'PUT', '/anything', 'user0'))
    self.assertEqual(expected, results)
    self.time += 28.0
    expected = [None, 30.0]
    results = list(self._check(2, 'PUT', '/anything', 'user0'))
    self.assertEqual(expected, results)
