def test_to_dict_contains_added_attributes(self): st = State() st.middle_name = "Holberton" st.my_number = 98 self.assertEqual("Holberton", st.middle_name) self.assertIn("my_number", st.to_dict())