Example #1
0
 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)
Example #2
0
 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)
Example #3
0
 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)
Example #4
0
 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)
Example #5
0
 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)
Example #6
0
 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)