Exemplo n.º 1
0
 def testCreateNewUser(self):
     c = Controller()
     c._getState().tree_view = State.UNILEVEL_TREE
     master = MasterUser.Get()
     user1Id = c.createNewUser(master)
     tree = UnilevelTree()
     tree.treeToJson(User.Get(user1Id).active_unilevel_position)
     user2Id = c.createNewUser(User.Get(user1Id))
     tree.treeToJson(User.Get(user1Id).active_unilevel_position)
     tree.treeToJson(User.Get(user2Id).active_unilevel_position)
Exemplo n.º 2
0
 def testCreateNewUser(self):
     c = Controller()
     c._getState().tree_view = State.UNILEVEL_TREE
     master = MasterUser.Get()
     user1Id = c.createNewUser(master)
     tree = UnilevelTree()
     tree.treeToJson(User.Get(user1Id).active_unilevel_position)
     user2Id = c.createNewUser(User.Get(user1Id))
     tree.treeToJson(User.Get(user1Id).active_unilevel_position)
     tree.treeToJson(User.Get(user2Id).active_unilevel_position)
Exemplo n.º 3
0
 def testGetState(self):
     c = Controller()
     state = c._getState()
     self.assertEqual(state, State.objects.get(id=1))
Exemplo n.º 4
0
 def testGetState(self):
     c = Controller()
     state = c._getState()
     self.assertEqual(state, State.objects.get(id=1))