old_contents: import unittest
  import datafilereader
  from robot.utils.asserts import assert_true, assert_false, assert_equals
  from robotide.controller.commands import MoveTo
  
  
  class TestMoveCommand(unittest.TestCase):
  
      def setUp(self):
          ctrl = datafilereader.construct_chief_controller(datafilereader.OCCURRENCES_PATH)
          self.ts1 = datafilereader.get_ctrl_by_name('TestSuite1', ctrl.datafiles)
          self.ts2 = datafilereader.get_ctrl_by_name('TestSuite2', ctrl.datafiles)
          self.resu = datafilereader.get_ctrl_by_name(datafilereader.OCCURRENCES_RESOURCE_NAME, ctrl.datafiles)
  
      def test_move_variable_from_suite_to_another_suite(self):
          var_from_suite1 = self.ts1.variables[0]
          var_from_suite1.execute(MoveTo(self.ts2))
          name, value = var_from_suite1.name, var_from_suite1.value
          assert_true((name, value) in [(v.name,v.value) for v in self.ts2.variables])
          assert_false((name, value) in [(v.name,v.value) for v in self.ts1.variables])
  
      def test_move_testcase_from_suite_to_another_suite(self):
          test_from_suite2 = self.ts2.tests[1]
          test_from_suite2.execute(MoveTo(self.ts1))
          assert_equals(test_from_suite2, self.ts1.tests[1])
          assert_equals(len(self.ts2.tests), 1)
  
  if __name__ == "__main__":
      unittest.main()
new_contents: import unittest
  import datafilereader
  from robot.utils.asserts import assert_true, assert_false, assert_equals
  from robotide.controller.commands import MoveTo
  
  
  class TestMoveCommand(unittest.TestCase):
  
      def setUp(self):
          ctrl = datafilereader.construct_chief_controller(datafilereader.OCCURRENCES_PATH)
          self.ts1 = datafilereader.get_ctrl_by_name('TestSuite1', ctrl.datafiles)
          self.ts2 = datafilereader.get_ctrl_by_name('TestSuite2', ctrl.datafiles)
          self.resu = datafilereader.get_ctrl_by_name(datafilereader.OCCURRENCES_RESOURCE_NAME, ctrl.datafiles)
  
      def test_move_variable_from_suite_to_another_suite(self):
          var_from_suite1 = self.ts1.variables[0]
          var_from_suite1.execute(MoveTo(self.ts2))
          name, value = var_from_suite1.name, var_from_suite1.value
          assert_true((name, value) in [(v.name,v.value) for v in self.ts2.variables])
          assert_false((name, value) in [(v.name,v.value) for v in self.ts1.variables])
  
      def test_move_testcase_from_suite_to_another_suite(self):
          test_from_suite2 = self.ts2.tests[1]
          test_from_suite2.execute(MoveTo(self.ts1))
          assert_equals(test_from_suite2, self.ts1.tests[1])
          assert_equals(len(self.ts2.tests), 1)
  
      def test_move_keyword_from_suite_to_another_suite(self):
          kw_from_suite1 = self.ts1.keywords[1]
          kw_from_suite1.execute(MoveTo(self.ts2))
          assert_equals(kw_from_suite1, self.ts2.keywords[1])
          assert_equals(len(self.ts1.keywords), 1)
          
  
  if __name__ == "__main__":
      unittest.main()
subject: Add test for moving keyword from suite to suite