Exemple #1
0
 def test_setUser(self):
     user = User("Test", "ACTIVE")
     cliente = Client(('127.0.0.1', 54000), user)
     new_user = User("test", "AWAY")
     cliente.setUser(new_user)
     self.assertEqual(cliente.getUser(), new_user)
Exemple #2
0
 def test_getUser(self):
     user = User("Test", "ACTIVE")
     cliente = Client(('127.0.0.1', 54000), user)
     self.assertEqual(cliente.getUser(), user)