def test_all_mermbers_case01(self):
     exp = 1
     act = Members.get_members_all()
     self.assertEqual(exp, act)
Esempio n. 2
0
 def test_del_member_by_tell_case01(self):
     exp = False
     act = Members.del_member_by_tell(1884587168)
     self.assertEqual(exp, act)
Esempio n. 3
0
 def test_addcase01(self):
     tel='18845871680'
     exp_add=False
     act_add=Members.add_member_by_tell(tel)
     self.assertEqual(exp_add, exp_add)
 def test_accumulated_shopping_points_case01(self):
     exp_disc = 0.9
     act_disc = Members.accumulated_shopping_points(18845871680, 10000)
     self.assertEqual(exp_disc, act_disc)
 def test_accumulated_shopping_points_case02(self):
     exp_disc = False
     act_disc = Members.accumulated_shopping_points(1111, 10000)
     self.assertEqual(exp_disc, act_disc)
 def test_modify_mermber_by_tel_case01(self):
     exp=False
     act=Members.modify_member_by_tel(1884587168,0.3)
     self.assertEqual(exp, act)
Esempio n. 7
0
 def test_addcase02(self):
     tel = '1'
     exp_add = 1
     act_add = Members.add_member_by_tell(tel)
     self.assertEqual(exp_add, exp_add)