def testsavetofile1(self): """ error save to file""" with self.assertRaises(AttributeError): Rectangle.save_to_string()