old_contents: import unittest
  
  import fact
  import lists
  import matrix
  
  class TestPython(unittest.TestCase):
    "Testing basic concepts in Python"
  
    def setUp(self):
    	pass
  
    def tearDown(self):
    	pass
  
    def test_basic_addition(self):
    	self.assertEqual(2 + 2, 4)
  
    def test_factorial(self):
    	self.assertEqual(fact.factorial(5), 120)
  
    def test_matrix(self):
    	m = matrix.get_matrix()
    	self.assertEqual(m[1][1], 5)
  
    def test_list(self):
      ls = lists.get_default_list()
      self.assertEqual(ls[-1], 13)	
  
    def test_list_replacement(self):
      ls = lists.get_default_list()
      ls[1] -= ls[0]
      self.assertEqual(ls[1], 1)
  
    def test_step(self):
      ls = lists.get_default_list()
      sl = ls[::2]
      self.assertEqual(sl[-1], ls[-2])
  
    def test_diffeomorphism(self):
      ls = lists.get_default_list()
      self.assertEqual(ls, ls[::-1][::-1])
  
    def test_append(self):
      ls = lists.get_default_list()
      old_len = len(ls)
      ls.append(17)
      self.assertEqual(old_len + 1, len(ls))
  
    def test_combine(self):
      ls1 = lists.get_default_list()
      ls2 = lists.get_next_list()
      ls1 += ls2
      self.assertEqual(10, len(ls1))
  
    def test_append_instead_of_combine(self):
      ls1 = lists.get_default_list()
      ls2 = lists.get_next_list()
      ls1.append(ls2)
      self.assertEqual(7, len(ls1))
  
  
  if __name__ == '__main__':
      unittest.main()
  
new_contents: import unittest
  
  import fact
  import lists
  import matrix
  
  class TestPython(unittest.TestCase):
    "Testing basic concepts in Python"
  
    def setUp(self):
    	pass
  
    def tearDown(self):
    	pass
  
    def test_basic_addition(self):
    	self.assertEqual(2 + 2, 4)
  
    def test_factorial(self):
    	self.assertEqual(fact.factorial(5), 120)
  
    def test_matrix(self):
    	m = matrix.get_matrix()
    	self.assertEqual(m[1][1], 5)
  
    def test_list(self):
      ls = lists.get_default_list()
      self.assertEqual(ls[-1], 13)	
  
    def test_list_replacement(self):
      ls = lists.get_default_list()
      ls[1] -= ls[0]
      self.assertEqual(ls[1], 1)
  
    def test_step(self):
      ls = lists.get_default_list()
      sl = ls[::2]
      self.assertEqual(sl[-1], ls[-2])
  
    def test_diffeomorphism(self):
      ls = lists.get_default_list()
      self.assertEqual(ls, ls[::-1][::-1])
  
    def test_append(self):
      ls = lists.get_default_list()
      old_len = len(ls)
      ls.append(17)
      self.assertEqual(old_len + 1, len(ls))
  
    def test_combine(self):
      ls1 = lists.get_default_list()
      ls2 = lists.get_next_list()
      ls1 += ls2
      self.assertEqual(10, len(ls1))
  
    def test_append_instead_of_combine(self):
      ls1 = lists.get_default_list()
      ls2 = lists.get_next_list()
      ls1.append(ls2)
      self.assertEqual(7, len(ls1))
      self.assertEqual(ls1[6][0], 17)
  
  
  if __name__ == '__main__':
      unittest.main()
  
subject: check structure