Beispiel #1
0
 def teste_endGame_not_equal(self):
     phrase = '20:54 Kill: 1022 2 22: <world> killed Isgalamido by MOD_TRIGGER_HURT'
     t = Task1()
     f = open('qgames.log',"r")
     json = t.endGame(['Isgalamido'],0,t.eachN_kill(phrase),t.eachN_kill(phrase),0)
     json2 = t.endGame(['<world>'],0,t.eachN_kill(phrase),t.eachN_kill(phrase),0)
     self.assertNotEqual(json,json2)
Beispiel #2
0
 def teste_task2_is_none(self):
     t = Task1()
     f = open('qgames.log',"r")
     json = t.task1(f)
     t2 = Task2.task2(self,json)
     self.assertIsNone(t2)
Beispiel #3
0
 def test_task1_equal(self):
     t = Task1()
     f = open('qgames.log',"r")
     json = t.task1(f)   
     self.assertEqual(json,json)
Beispiel #4
0
 def teste_each_not_N_killed_equal(self):
     t = Task1()
     f = open('qgames.log',"r")
     name = t.eachN_killed('20:54 Kill: 1022 2 22: <world> killed Isgalamido by MOD_TRIGGER_HURT')
     name2 = t.eachN_killed('20:54 Kill: 1022 2 22: <world> killed Isgalamido2 by MOD_TRIGGER_HURT')
     self.assertNotEqual(name,name2)
Beispiel #5
0
 def test_task1_not_equal(self):
     t = Task1()
     f = open('qgames.log',"r")
     json = t.task1(f)
     self.assertNotEqual(None,json)
Beispiel #6
0
def game():
    t = Task1()
    f = open('qgames.log', "r")
    score = t.task1(f)
    return score
Beispiel #7
0
def search_game(id):
    t = Task1()
    f = open('qgames.log', "r")
    score = t.task1(f)
    return score[str(id)]