Beispiel #1
0
 def test_gen_order_id_prefix(self):
     order = Order()
     order.id = 100
     gid = order.gen_order_id()
     self.assertEqual(900000100, gid)
Beispiel #2
0
 def test_gen_order_id_prefix_repeat(self):
     order = Order()
     order.id = 999
     gid = order.gen_order_id()
     self.assertEqual(900000999, gid)
Beispiel #3
0
 def test_get_order_id(self):
     order = Order()
     order.id = 100
     gid = order.gen_order_id()
     self.assertEqual(100, gid)