def test_copy_table_with_new_name(self): table1 = Table(name='Test') table1['A1'].set_value('marker') table2 = table1.copy(newname='Copy of '+table1.name) self.assertEqual('Copy of Test', table2.name, "table2 has wrong name.") self.assertEqual('marker', table2['A1'].value, "marker not found in table2")
def test_copy_table_with_new_name(self): table1 = Table(name='Test') table1['A1'].set_value('marker') table2 = table1.copy(newname='Copy of ' + table1.name) self.assertEqual('Copy of Test', table2.name, "table2 has wrong name.") self.assertEqual('marker', table2['A1'].value, "marker not found in table2")
def test_copy_table_without_new_name(self): table1 = Table(name='Test') table2 = table1.copy() self.assertEqual('CopyOfTest', table2.name, "table2 has wrong name.")