def test_instagram_time_is_1_and_epoch_is_1(self, time): time.return_value = 1 epoch = 1 guoid = Instagram(epoch) guoidvalue = guoid.next(self.get_id("charsyam")) self.assertEqual(24576, guoidvalue)
def test_instagram_time_is_2(self, time): time.return_value = 2 epoch = 0 guoid = Instagram(epoch) guoidvalue = guoid.next(self.get_id("charsyam")) self.assertEqual(8388632576, guoidvalue)
def test_instagram_time_is_1(self, time): time.return_value = 1 epoch = 0 guoid = Instagram(epoch) guoidvalue = guoid.next(self.get_id("charsyam2")) self.assertEqual(4194324480, guoidvalue)
def test_Instagram_time_is_1_and_epoch_is_1(self, time): time.return_value = 1 epoch = 1 guoid = Instagram(epoch) guoidvalue = guoid.next(self.get_id("charsyam")) self.assertEqual(49152, guoidvalue)
def test_Instagram_time_is_2(self, time): time.return_value = 1 epoch = 0 guoid = Instagram(epoch) guoidvalue = guoid.next(self.get_id("charsyam")) self.assertEqual(4194353152, guoidvalue)
def test_Instagram_time_is_1(self, time): time.return_value = 0 epoch = 0 guoid = Instagram(epoch) guoidvalue = guoid.next(self.get_id("charsyam2")) self.assertEqual(57344, guoidvalue)