def test_repr(self): self.assertEqual(str(ex01.WithDefault()), "WithDefault(fld_1=42, fld_2='hello')")
def test_assign_fld_2(self): self.assertEqual(ex01.WithDefault(fld_2='world').fld_2, 'world')
def test_eq(self): self.assertEqual(ex01.WithDefault(), ex01.WithDefault(fld_1=42, fld_2='hello'))
def test_assign_fld_1(self): self.assertEqual(ex01.WithDefault(fld_1=-28).fld_1, -28)
def test_init_fld_2(self): self.assertEqual(ex01.WithDefault().fld_2, 'hello')
def test_init_fld_1(self): self.assertEqual(ex01.WithDefault().fld_1, 42)
def test_repr(self): self.assertEqual(str(ex01.WithDefault()), "")
def test_eq(self): self.assertEqual(ex01.WithDefault(), ex01.WithDefault(fld_1=0, fld_2=''))