Example #1
0
 def test_assign_ticket_true(self):
     rep = UserRepository()
     user_id = rep.create('l_name', 'p_name')
     boolean = rep.assign_prod(user_id, 'abc')
     self.assertTrue(boolean)
     rep.delete(user_id)
Example #2
0
 def test_delete_existed(self):
     rep = UserRepository()
     id1 = rep.create('l_name', 'p_name')
     rep.delete(id1)
     self.assertFalse(rep.exists(id1))