#!/usr/bin/env python
# -*- coding: utf-8 -*-

#
# Based on AboutArrayAssignments in the Ruby Koans
#

from runner.koan import *


class AboutListAssignments(Koan):
    def test_non_parallel_assignment(self):
        names = ["John", "Smith"]
        self.assertEqual(__, names)

    def test_parallel_assignments(self):
        first_name, last_name = ["John", "Smith"]
        self.assertEqual(__, first_name)
        self.assertEqual(__, last_name)

    def test_parallel_assignments_with_sublists(self):
        first_name, last_name = [["Willie", "Rae"], "Johnson"]
        self.assertEqual(__, first_name)
        self.assertEqual(__, last_name)

    def test_swapping_with_parallel_assignment(self):
        first_name = "Roy"
        last_name = "Rob"
        first_name, last_name = last_name, first_name
        self.assertEqual(__, first_name)
        self.assertEqual(__, last_name)

@@ -261,18 +261,33 @@
 rtEqual(
-__
+%5B%22John%22, %22Smith%22%5D
 , names)
@@ -396,34 +396,46 @@
 elf.assertEqual(
-__
+first_name%5B:4%5D
 , first_name)%0A  
@@ -449,34 +449,45 @@
 elf.assertEqual(
-__
+last_name%5B0:%5D
 , last_name)%0A%0A  
@@ -619,34 +619,47 @@
 elf.assertEqual(
-__
+first_name%5B0:2%5D
 , first_name)%0A  
@@ -673,34 +673,45 @@
 elf.assertEqual(
-__
+last_name%5B0:%5D
 , last_name)%0A%0A  
@@ -894,18 +894,30 @@
 rtEqual(
-__
+first_name%5B:3%5D
 , first_
@@ -951,10 +951,21 @@
 ual(
-__
+last_name%5B:3%5D
 , la

Update about_list_assignments.py