Esempio n. 1
0
    def testSwitchResultDisplay(self):
        self.assertEquals(choice.getCurrView(self.uuid), "data")

        params = {"client_key": "this_is_the_super_secret_id",
                  "uuid": str(self.uuid),
                  "new_view": "game"}
        choice.switchResultDisplay(params)

        self.assertEquals(choice.getCurrView(self.uuid), "game")
Esempio n. 2
0
    def testSwitchResultDisplay(self):
        self.assertEquals(choice.getCurrView(self.uuid), "data")

        params = {
            "client_key": "this_is_the_super_secret_id",
            "uuid": str(self.uuid),
            "new_view": "game"
        }
        choice.switchResultDisplay(params)

        self.assertEquals(choice.getCurrView(self.uuid), "game")
Esempio n. 3
0
 def testCurrView(self):
     self.assertEquals(choice.getCurrView(self.uuid), "data")
     choice.setCurrView(self.uuid, "game")
     self.assertEquals(choice.getCurrView(self.uuid), "game")
Esempio n. 4
0
 def testCurrView(self):
     self.assertEquals(choice.getCurrView(self.uuid), "data")
     choice.setCurrView(self.uuid, "game")
     self.assertEquals(choice.getCurrView(self.uuid), "game")