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)
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)
def test_task1_equal(self): t = Task1() f = open('qgames.log',"r") json = t.task1(f) self.assertEqual(json,json)
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)
def test_task1_not_equal(self): t = Task1() f = open('qgames.log',"r") json = t.task1(f) self.assertNotEqual(None,json)
def game(): t = Task1() f = open('qgames.log', "r") score = t.task1(f) return score
def search_game(id): t = Task1() f = open('qgames.log', "r") score = t.task1(f) return score[str(id)]