示例#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)
示例#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)
示例#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)
示例#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)
示例#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)
示例#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)