def test_addUser(self): global status lb = LocalBuffer() user = status2User( status ) lb.addUser(user) self.assertEqual(len(lb.userList.getList()), 1)
def test_addRepeatedUser(self): global status lb = LocalBuffer() user = status2User(status) lb.addUser(user) self.assertRaises(Exception, lb.addUser, user)
def test_status2User(self): global status user = status2User( status )