def test_to_color_result(self): editor = EditorGrafico() editor.execute_command("I 5 5") editor.execute_command("L 2 2 A") color = editor.matrix().get(2, 2) self.assertEquals(color, "A")
def test_create_matrix(self): editor = EditorGrafico() editor.execute_command("I 5 5") matrix = Matrix(5, 5) self.assertEquals(editor.matrix(), matrix)